Documentation ¶
Index ¶
- type CategoryService
- func (s *CategoryService) AdminCreateCategory(ctx context.Context, category domain.Category) error
- func (s *CategoryService) AdminGetCategories(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error)
- func (s *CategoryService) AdminGetSelectCategories(ctx context.Context) ([]domain.Category, error)
- func (s *CategoryService) DeleteCategory(ctx context.Context, id string) error
- func (s *CategoryService) GetCategories(ctx context.Context) ([]domain.CategoryWithCount, error)
- func (s *CategoryService) GetCategoryByRoute(ctx context.Context, route string) (domain.Category, error)
- func (s *CategoryService) GetMenus(ctx context.Context) (menuVO []domain.Category, err error)
- func (s *CategoryService) ModifyCategory(ctx context.Context, id string, description string) error
- func (s *CategoryService) ModifyCategoryEnabled(ctx context.Context, id string, enabled bool) error
- func (s *CategoryService) ModifyCategoryNavigation(ctx context.Context, id string, showInNav bool) error
- func (s *CategoryService) QueryCategoriesPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error)
- type ICategoryService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryService ¶
type CategoryService struct {
// contains filtered or unexported fields
}
func NewCategoryService ¶
func NewCategoryService(repo repository.ICategoryRepository, countStatsService service.ICountStatsService, configService website_config.Service) *CategoryService
func (*CategoryService) AdminCreateCategory ¶
func (*CategoryService) AdminGetCategories ¶
func (*CategoryService) AdminGetSelectCategories ¶
func (*CategoryService) DeleteCategory ¶
func (s *CategoryService) DeleteCategory(ctx context.Context, id string) error
func (*CategoryService) GetCategories ¶
func (s *CategoryService) GetCategories(ctx context.Context) ([]domain.CategoryWithCount, error)
func (*CategoryService) GetCategoryByRoute ¶
func (*CategoryService) ModifyCategory ¶
func (*CategoryService) ModifyCategoryEnabled ¶
func (*CategoryService) ModifyCategoryNavigation ¶
type ICategoryService ¶
type ICategoryService interface { GetCategories(ctx context.Context) ([]domain.CategoryWithCount, error) GetMenus(ctx context.Context) ([]domain.Category, error) GetCategoryByRoute(ctx context.Context, route string) (domain.Category, error) AdminGetCategories(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error) AdminCreateCategory(ctx context.Context, category domain.Category) error ModifyCategoryEnabled(ctx context.Context, id string, enabled bool) error ModifyCategory(ctx context.Context, id string, description string) error DeleteCategory(ctx context.Context, id string) error AdminGetSelectCategories(ctx context.Context) ([]domain.Category, error) }
Click to show internal directories.
Click to hide internal directories.