Documentation ¶
Index ¶
- type CategoryRepository
- func (r *CategoryRepository) CreateCategory(ctx context.Context, category domain.Category) (string, error)
- func (r *CategoryRepository) DeleteCategory(ctx context.Context, id string) error
- func (r *CategoryRepository) GetAll(ctx context.Context) ([]domain.Category, error)
- func (r *CategoryRepository) GetCategoryById(ctx context.Context, id string) (t domain.Category, err error)
- func (r *CategoryRepository) GetCategoryByRoute(ctx context.Context, route string) (domain.Category, error)
- func (r *CategoryRepository) GetNavigations(ctx context.Context) ([]domain.Category, error)
- func (r *CategoryRepository) GetSelectCategories(ctx context.Context) ([]domain.Category, error)
- func (r *CategoryRepository) ModifyCategory(ctx context.Context, id string, description string) error
- func (r *CategoryRepository) ModifyCategoryEnabled(ctx context.Context, id string, enabled bool) error
- func (r *CategoryRepository) ModifyCategoryNavigation(ctx context.Context, id string, showInNav bool) error
- func (r *CategoryRepository) QueryCategoriesPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error)
- func (r *CategoryRepository) RecoverCategory(ctx context.Context, category domain.Category) error
- type ICategoryRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
type CategoryRepository struct {
// contains filtered or unexported fields
}
func NewCategoryRepository ¶
func NewCategoryRepository(dao dao.ICategoryDao) *CategoryRepository
func (*CategoryRepository) CreateCategory ¶
func (*CategoryRepository) DeleteCategory ¶
func (r *CategoryRepository) DeleteCategory(ctx context.Context, id string) error
func (*CategoryRepository) GetCategoryById ¶
func (*CategoryRepository) GetCategoryByRoute ¶
func (*CategoryRepository) GetNavigations ¶
func (*CategoryRepository) GetSelectCategories ¶
func (*CategoryRepository) ModifyCategory ¶
func (*CategoryRepository) ModifyCategoryEnabled ¶
func (*CategoryRepository) ModifyCategoryNavigation ¶
func (*CategoryRepository) QueryCategoriesPage ¶
func (*CategoryRepository) RecoverCategory ¶
type ICategoryRepository ¶
type ICategoryRepository interface { GetAll(ctx context.Context) ([]domain.Category, error) GetCategoryByRoute(ctx context.Context, route string) (domain.Category, error) QueryCategoriesPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error) CreateCategory(ctx context.Context, category domain.Category) (string, 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 GetCategoryById(ctx context.Context, id string) (domain.Category, error) RecoverCategory(ctx context.Context, category domain.Category) error GetSelectCategories(ctx context.Context) ([]domain.Category, error) }
Click to show internal directories.
Click to hide internal directories.