order

package
v0.0.0-...-097943f Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r gin.IRouter, db *sql.DB) error

Types

type Config

type Config struct {
	OrderDB        string
	OrderTable     string
	ItemTable      string
	ClosedInterval int
}

type Controller

type Controller struct {
	Cnf Config
	// contains filtered or unexported fields
}

func New

func New(db *sql.DB, cnf Config) *Controller

New -

func (*Controller) CreateDB

func (ctl *Controller) CreateDB() error

CreateDB -

func (*Controller) CreateItemTable

func (ctl *Controller) CreateItemTable() error

CreateItemTable -

func (*Controller) CreateOrderTable

func (ctl *Controller) CreateOrderTable() error

CreateOrderTable -

func (*Controller) Insert

func (ctl *Controller) Insert(c *gin.Context)

Insert -

func (*Controller) LisitOrderByUserIDAndStatus

func (ctl *Controller) LisitOrderByUserIDAndStatus(c *gin.Context)

mode:

Unfinished = 0
Finished   = 1
Paid       = 2
Consigned  = 3
Canceled   = 4

func (*Controller) OrderIDByOrderCode

func (ctl *Controller) OrderIDByOrderCode(c *gin.Context)

optional

func (*Controller) OrderInfoByOrderID

func (ctl *Controller) OrderInfoByOrderID(c *gin.Context)

full info for One Order

Jump to

Keyboard shortcuts

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