Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type OrderModel ¶
type OrderModel interface {
Insert(data *Order) (sql.Result, error)
FindOne(id int64) (*Order, error)
Update(data *Order) error
Delete(id int64) error
FindAllByUid(uid int64) ([]*Order, error)
}
func NewOrderModel ¶
func NewOrderModel(conn sqlx.SqlConn, c cache.CacheConf) OrderModel
Click to show internal directories.
Click to hide internal directories.