Documentation
¶
Index ¶
- type CategoryRepo
- func (r *CategoryRepo) Count(ctx context.Context, qe repository.Querier) (int, error)
- func (r *CategoryRepo) Create(ctx context.Context, qe repository.Querier, category *entity.Category) (*entity.Category, error)
- func (r *CategoryRepo) Delete(ctx context.Context, qe repository.Querier, id int) error
- func (r *CategoryRepo) Get(ctx context.Context, qe repository.Querier, params repository.PaginationParams) ([]*entity.Category, error)
- func (r *CategoryRepo) Update(ctx context.Context, qe repository.Querier, id int, ...) (*entity.Category, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepo ¶
type CategoryRepo struct { }
func New ¶
func New() *CategoryRepo
func (*CategoryRepo) Count ¶
func (r *CategoryRepo) Count(ctx context.Context, qe repository.Querier) (int, error)
func (*CategoryRepo) Create ¶
func (r *CategoryRepo) Create(ctx context.Context, qe repository.Querier, category *entity.Category) (*entity.Category, error)
func (*CategoryRepo) Delete ¶
func (r *CategoryRepo) Delete(ctx context.Context, qe repository.Querier, id int) error
func (*CategoryRepo) Get ¶
func (r *CategoryRepo) Get(ctx context.Context, qe repository.Querier, params repository.PaginationParams) ([]*entity.Category, error)
func (*CategoryRepo) Update ¶
func (r *CategoryRepo) Update(ctx context.Context, qe repository.Querier, id int, category *entity.CategoryUpdate) (*entity.Category, error)
Click to show internal directories.
Click to hide internal directories.