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

14 lines
375 B
Go
Raw Permalink Normal View History

2026-06-26 08:37:04 +00:00
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)
}