Documentation ¶
Overview ¶
Code generated by gormer. DO NOT EDIT.
Index ¶
- type OrderRepo
- func (repo *OrderRepo) AddOrder(ctx context.Context, order *gormer.Order) (err error)
- func (repo *OrderRepo) AddOrders(ctx context.Context, orders []*gormer.Order) (err error)
- func (repo *OrderRepo) CountOrders(ctx context.Context, condition *gormer.OrderOptions) (count int64, err error)
- func (repo *OrderRepo) CountOrdersByNamesAndCreateTime(ctx context.Context, names []string, createTime time.Time, ...) (count int64, err error)
- func (repo *OrderRepo) CountOrdersByTimeRange(ctx context.Context, startTime time.Time, endTime time.Time, ...) (count int64, err error)
- func (repo *OrderRepo) CountOrdersDesc(ctx context.Context, condition *gormer.OrderOptions) (count int64, err error)
- func (repo *OrderRepo) DeleteOrder(ctx context.Context, condition *gormer.OrderOptions) (err error)
- func (repo *OrderRepo) QueryOrders(ctx context.Context, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)
- func (repo *OrderRepo) QueryOrdersByNamesAndCreateTime(ctx context.Context, names []string, createTime time.Time, ...) (orders []gormer.Order, err error)
- func (repo *OrderRepo) QueryOrdersByTimeRange(ctx context.Context, startTime time.Time, endTime time.Time, ...) (orders []gormer.Order, err error)
- func (repo *OrderRepo) QueryOrdersDesc(ctx context.Context, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)
- func (repo *OrderRepo) UpdateOrder(ctx context.Context, updated, condition *gormer.OrderOptions) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderRepo ¶ added in v0.4.1
type OrderRepo struct {
// contains filtered or unexported fields
}
func InitializeMockOrderRepo ¶ added in v0.8.1
func InitializeMockOrderRepo() *OrderRepo
func NewOrderRepo ¶ added in v0.4.1
func (*OrderRepo) CountOrders ¶ added in v0.5.2
func (*OrderRepo) CountOrdersByNamesAndCreateTime ¶ added in v0.8.1
func (repo *OrderRepo) CountOrdersByNamesAndCreateTime(ctx context.Context, names []string, createTime time.Time, condition *gormer.OrderOptions) (count int64, err error)
CountOrdersByNamesAndCreateTime 根据名称和创建时间查询
func (*OrderRepo) CountOrdersByTimeRange ¶ added in v0.8.1
func (repo *OrderRepo) CountOrdersByTimeRange(ctx context.Context, startTime time.Time, endTime time.Time, condition *gormer.OrderOptions) (count int64, err error)
CountOrdersByTimeRange 根据创建时间的范围查询
func (*OrderRepo) CountOrdersDesc ¶ added in v0.8.1
func (repo *OrderRepo) CountOrdersDesc(ctx context.Context, condition *gormer.OrderOptions) (count int64, err error)
CountOrdersDesc 根据id逆序查询
func (*OrderRepo) DeleteOrder ¶ added in v0.5.2
func (*OrderRepo) QueryOrders ¶ added in v0.4.1
func (*OrderRepo) QueryOrdersByNamesAndCreateTime ¶ added in v0.8.1
func (repo *OrderRepo) QueryOrdersByNamesAndCreateTime(ctx context.Context, names []string, createTime time.Time, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)
QueryOrdersByNamesAndCreateTime 根据名称和创建时间查询
func (*OrderRepo) QueryOrdersByTimeRange ¶ added in v0.8.1
func (repo *OrderRepo) QueryOrdersByTimeRange(ctx context.Context, startTime time.Time, endTime time.Time, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)
QueryOrdersByTimeRange 根据创建时间的范围查询
func (*OrderRepo) QueryOrdersDesc ¶ added in v0.8.1
func (repo *OrderRepo) QueryOrdersDesc(ctx context.Context, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)
QueryOrdersDesc 根据id逆序查询
func (*OrderRepo) UpdateOrder ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.