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) }