data

package
v0.0.0-...-b9e3c63 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrderRepo

func NewOrderRepo(data *data.Data, logger log.Logger) biz.OrderRepo

Types

type OrderRepo

type OrderRepo struct {
	// contains filtered or unexported fields
}

func (*OrderRepo) CreateOrder

func (repo *OrderRepo) CreateOrder(ctx context.Context, m *model.Order) (int64, error)

CreateOrder 写入Order

func (*OrderRepo) DeleteOrder

func (repo *OrderRepo) DeleteOrder(ctx context.Context, id int64) (rows int64, error error)

DeleteOrder 删除Order

func (*OrderRepo) GetOrder

func (repo *OrderRepo) GetOrder(ctx context.Context, m *model.Order) (result interface{}, err error)

GetOrder 获取Order记录

func (*OrderRepo) ListOrder

func (repo *OrderRepo) ListOrder(ctx context.Context, m *model.Order, pageSize, page int) (result interface{}, counts int64, err error)

ListOrder 分页获取Order记录

func (*OrderRepo) UpdateOrder

func (repo *OrderRepo) UpdateOrder(ctx context.Context, m *model.Order) (rows int64, error error)

UpdateOrder 更新Order

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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