repository

package
v0.0.0-...-61f55d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 (r *CategoryRepository) CreateCategory(ctx context.Context, category domain.Category) (string, error)

func (*CategoryRepository) DeleteCategory

func (r *CategoryRepository) DeleteCategory(ctx context.Context, id string) error

func (*CategoryRepository) GetAll

func (r *CategoryRepository) GetAll(ctx context.Context) ([]domain.Category, error)

func (*CategoryRepository) GetCategoryById

func (r *CategoryRepository) GetCategoryById(ctx context.Context, id string) (t domain.Category, err error)

func (*CategoryRepository) GetCategoryByRoute

func (r *CategoryRepository) GetCategoryByRoute(ctx context.Context, route string) (domain.Category, error)

func (*CategoryRepository) GetNavigations

func (r *CategoryRepository) GetNavigations(ctx context.Context) ([]domain.Category, error)

func (*CategoryRepository) GetSelectCategories

func (r *CategoryRepository) GetSelectCategories(ctx context.Context) ([]domain.Category, error)

func (*CategoryRepository) ModifyCategory

func (r *CategoryRepository) ModifyCategory(ctx context.Context, id string, description string) error

func (*CategoryRepository) ModifyCategoryEnabled

func (r *CategoryRepository) ModifyCategoryEnabled(ctx context.Context, id string, enabled bool) error

func (*CategoryRepository) ModifyCategoryNavigation

func (r *CategoryRepository) ModifyCategoryNavigation(ctx context.Context, id string, showInNav bool) error

func (*CategoryRepository) QueryCategoriesPage

func (r *CategoryRepository) QueryCategoriesPage(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Category, int64, error)

func (*CategoryRepository) RecoverCategory

func (r *CategoryRepository) RecoverCategory(ctx context.Context, category domain.Category) error

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
	GetNavigations(ctx context.Context) ([]domain.Category, error)
	ModifyCategoryNavigation(ctx context.Context, id string, showInNav bool) 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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL