dao

package
v0.0.0-...-99ed3b9 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderDao

type OrderDao interface {
	Create(order *model.Order) (orderId int64, err error)
	GetOrder(orderId string) (order model.Order, err error)
	UpdateOrderPaid(paidOrderInfo param.PaidOrderParam) (count int64, err error)
}

func NewOrderImpl

func NewOrderImpl(db *gorm.DB) OrderDao

type OrderImpl

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

func (*OrderImpl) Create

func (dao *OrderImpl) Create(order *model.Order) (orderId int64, err error)

func (*OrderImpl) GetOrder

func (dao *OrderImpl) GetOrder(orderId string) (order model.Order, err error)

func (*OrderImpl) UpdateOrderPaid

func (dao *OrderImpl) UpdateOrderPaid(paidOrderInfo param.PaidOrderParam) (count int64, err error)

Jump to

Keyboard shortcuts

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