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 { TxAdjustStock(ctx context.Context, tx *sql.Tx, id int64, delta int) (sql.Result, 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.