dao

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by gormer. DO NOT EDIT.

Index

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 NewOrderRepo(db *gorm.DB) *OrderRepo

func (*OrderRepo) AddOrder added in v0.4.1

func (repo *OrderRepo) AddOrder(ctx context.Context, order *gormer.Order) (err error)

func (*OrderRepo) AddOrders added in v0.8.1

func (repo *OrderRepo) AddOrders(ctx context.Context, orders []*gormer.Order) (err error)

func (*OrderRepo) CountOrders added in v0.5.2

func (repo *OrderRepo) CountOrders(ctx context.Context, condition *gormer.OrderOptions) (count int64, err error)

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 (repo *OrderRepo) DeleteOrder(ctx context.Context, condition *gormer.OrderOptions) (err error)

func (*OrderRepo) QueryOrders added in v0.4.1

func (repo *OrderRepo) QueryOrders(ctx context.Context, pageNumber, pageSize int, condition *gormer.OrderOptions) (orders []gormer.Order, err error)

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

func (repo *OrderRepo) UpdateOrder(ctx context.Context, updated, condition *gormer.OrderOptions) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL