Documentation ¶
Index ¶
- func NewOrderRepo(data *data.Data, logger log.Logger) biz.OrderRepo
- type OrderRepo
- func (repo *OrderRepo) CreateOrder(ctx context.Context, m *model.Order) (int64, error)
- func (repo *OrderRepo) DeleteOrder(ctx context.Context, id int64) (rows int64, error error)
- func (repo *OrderRepo) GetOrder(ctx context.Context, m *model.Order) (result interface{}, err error)
- func (repo *OrderRepo) ListOrder(ctx context.Context, m *model.Order, pageSize, page int) (result interface{}, counts int64, err error)
- func (repo *OrderRepo) UpdateOrder(ctx context.Context, m *model.Order) (rows int64, error error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OrderRepo ¶
type OrderRepo struct {
// contains filtered or unexported fields
}
func (*OrderRepo) CreateOrder ¶
CreateOrder 写入Order
func (*OrderRepo) DeleteOrder ¶
DeleteOrder 删除Order
func (*OrderRepo) GetOrder ¶
func (repo *OrderRepo) GetOrder(ctx context.Context, m *model.Order) (result interface{}, err error)
GetOrder 获取Order记录
Click to show internal directories.
Click to hide internal directories.