package category

import "tercul/internal/domain"

// Service is the application service for the category aggregate.
type Service struct {
	Commands *CategoryCommands
	Queries  *CategoryQueries
}

// NewService creates a new category Service.
func NewService(repo domain.CategoryRepository) *Service {
	return &Service{
		Commands: NewCategoryCommands(repo),
		Queries:  NewCategoryQueries(repo),
	}
}
