Documentation
¶
Index ¶
- func CreateDB(db *sql.DB, createDB string) error
- func CreateTable(db *sql.DB, ostore string) error
- func Insert(order Order, items []Item, db *sql.DB, closedInterval int, orderDB string, ...) (id uint32, err error)
- func OrderIDByOrderCode(db *sql.DB, ostore string, ordercode string) (uint32, error)
- type Item
- type Order
- type OrmOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Order ¶
type Order struct { ID uint32 OrderCode string `json:"ordercode"` UserID uint64 `json:"userid"` ShipCode string `json:"shipcode"` AddressID string `json:"addressid"` TotalPrice uint32 `json:"totalprice"` PayWay uint8 `json:"payway"` Promotion bool `json:"promotion"` Freight uint32 `json:"freight"` Status uint8 `json:"status"` Created time.Time `json:"created"` Closed time.Time `json:"closed"` Updated time.Time `json:"updated"` }
type OrmOrder ¶
func LisitOrderByUserID ¶
Click to show internal directories.
Click to hide internal directories.