Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type ProductModel ¶
type ProductModel interface { Insert(data *Product) (sql.Result, error) FindOne(id int64) (*Product, error) Update(data *Product) error Delete(id int64) error FindAll(page, size int64, search string) ([]*Product, error) }
func NewProductModel ¶
func NewProductModel(conn sqlx.SqlConn, c cache.CacheConf) ProductModel
Click to show internal directories.
Click to hide internal directories.