package work import ( "tercul/internal/app/authz" "tercul/internal/domain/search" "tercul/internal/domain/work" ) // Service is the application service for the work aggregate. type Service struct { Commands *WorkCommands Queries *WorkQueries } // NewService creates a new work Service. func NewService(repo work.WorkRepository, searchClient search.SearchClient, authzSvc *authz.Service) *Service { return &Service{ Commands: NewWorkCommands(repo, searchClient, authzSvc), Queries: NewWorkQueries(repo), } }