Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type CategoryModel ¶
type CategoryModel interface {
// contains filtered or unexported methods
}
CategoryModel is an interface to be customized, add more methods here, and implement the added methods in customCategoryModel.
func NewCategoryModel ¶
func NewCategoryModel(conn sqlx.SqlConn, c cache.CacheConf) CategoryModel
NewCategoryModel returns a model for the database table.
type ProductModel ¶
type ProductModel interface { Pagination(ctx context.Context, cursor, limit int64) ([]Product, error) // contains filtered or unexported methods }
ProductModel is an interface to be customized, add more methods here, and implement the added methods in customProductModel.
func NewProductModel ¶
func NewProductModel(conn sqlx.SqlConn, c cache.CacheConf) ProductModel
NewProductModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.