category

package
v0.0.0-...-1f5b4f5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (*CategoryRepo) Update

func (r *CategoryRepo) Update(ctx context.Context, qe repository.Querier, id int, category *entity.CategoryUpdate) (*entity.Category, error)

Jump to

Keyboard shortcuts

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