thread-master/internal/model/content_matrix/domain/repository/repository.go

14 lines
375 B
Go

package repository
import (
"context"
"haixun-backend/internal/model/content_matrix/domain/entity"
)
type Repository interface {
EnsureIndexes(ctx context.Context) error
UpsertByBrand(ctx context.Context, matrix *entity.ContentMatrix) (*entity.ContentMatrix, error)
GetByBrand(ctx context.Context, tenantID, ownerUID, brandID string) (*entity.ContentMatrix, error)
}