categorymodel

package
v0.0.0-...-71fa18b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICategoryModel

type ICategoryModel interface {
	Add(ctx context.Context, category *entities.Category) (*entities.Category, *errors.CustomError)
	GetAll(ctx context.Context) (*[]entities.Category, *errors.CustomError)
	GetByName(ctx context.Context, name string) (*entities.Category, *errors.CustomError)
	GetByID(ctx context.Context, id int64) (*entities.Category, *errors.CustomError)
}

func NewSqlxModel

func NewSqlxModel(sqlx *sqlx.DB) ICategoryModel

Jump to

Keyboard shortcuts

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