package repository

import (
	"context"

	"haixun-backend/internal/model/own_post_formula/domain/entity"
)

type Repository interface {
	EnsureIndexes(ctx context.Context) error
	Upsert(ctx context.Context, review *entity.Review) (*entity.Review, error)
	Get(ctx context.Context, tenantID, ownerUID, accountID, mediaID string) (*entity.Review, error)
	ListByAccount(ctx context.Context, tenantID, ownerUID, accountID string) ([]entity.Review, error)
}
