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(ctx context.Context, data *Order) (sql.Result, error) FindOne(ctx context.Context, id int64) (*Order, error) FindAllByUid(uid int64) ([]*Order, error) Update(ctx context.Context, data *Order) error Delete(ctx context.Context, id int64) error }
func NewOrderModel ¶
func NewOrderModel(conn sqlx.SqlConn, c cache.CacheConf) OrderModel
Click to show internal directories.
Click to hide internal directories.