Documentation
¶
Overview ¶
Package service contain all business logic
Index ¶
- func CreateCat(ctx context.Context, cat *model.Cat) (err error)
- func CreateCategory(ctx context.Context, category *model.Category) (err error)
- func DeleteCat(ctx context.Context, cat *model.Cat, id string) (err error)
- func GetCatByID(ctx context.Context, cat *model.Cat, id string) (err error)
- func GetCategories(ctx context.Context, categories *[]model.Category) (err error)
- func GetCats(ctx context.Context, cats *[]model.Cat) (err error)
- func UpdateCat(ctx context.Context, cat *model.Cat) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCategory ¶
CreateCategory create new category
func GetCatByID ¶
GetCatByID fetch cat by ID.
func GetCategories ¶
GetCategories fetch all categories
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.