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
Click to show internal directories.
Click to hide internal directories.