dao

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

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

func NewOrder

func NewOrder(db *gorm.DB, rdb *redis.Client) *Order

func (*Order) CreateOrder

func (o *Order) CreateOrder(order *model.Order) error

func (*Order) GetOrder

func (o *Order) GetOrder(id int64) (order *model.Order, err error)

func (*Order) GetOrderList

func (o *Order) GetOrderList(uid int64) (list []*model.Order, err error)

func (*Order) SetOrderInRedis

func (o *Order) SetOrderInRedis(ctx context.Context, id, amount, expTime int64) error

func (*Order) UpdateOrder

func (o *Order) UpdateOrder(id int64, status int8) error

Jump to

Keyboard shortcuts

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