package domain import ( "context" "github.com/google/uuid" ) // StatsRepository provides access to persisted analytics counters (work_stats, translation_stats). // // This interface intentionally lives in the domain package to avoid import cycles between // application services (e.g. internal/app/analytics) and lower-level packages (e.g. jobs). // Implementations typically live in the data layer. type StatsRepository interface { GetOrCreateWorkStats(ctx context.Context, workID uuid.UUID) (*WorkStats, error) GetOrCreateTranslationStats(ctx context.Context, translationID uuid.UUID) (*TranslationStats, error) }