Documentation
¶
Index ¶
- func Register(r gin.IRouter, db *sql.DB) error
- type Config
- type Controller
- func (ctl *Controller) CreateDB() error
- func (ctl *Controller) CreateItemTable() error
- func (ctl *Controller) CreateOrderTable() error
- func (ctl *Controller) Insert(c *gin.Context)
- func (ctl *Controller) LisitOrderByUserIDAndStatus(c *gin.Context)
- func (ctl *Controller) OrderIDByOrderCode(c *gin.Context)
- func (ctl *Controller) OrderInfoByOrderID(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct { Cnf Config // contains filtered or unexported fields }
func (*Controller) CreateItemTable ¶
func (ctl *Controller) CreateItemTable() error
CreateItemTable -
func (*Controller) CreateOrderTable ¶
func (ctl *Controller) CreateOrderTable() error
CreateOrderTable -
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
Click to show internal directories.
Click to hide internal directories.