Documentation ¶
Index ¶
Constants ¶
View Source
const AMonth = 30 * 24 * 60 * 60 * 1e9
Variables ¶
View Source
var ( Service *serviceProvider StatusUnpay uint8 = 0 StatusPaid uint8 = 1 StatusConfirmed uint8 = 2 PayWayOnline uint8 = 3 )
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { ID uint64 `gorm:"primary_key;auto_increment"` BillID string `gorm:"not null"` UserID uint32 `gorm:"not null"` ParentID uint64 `gorm:"not null"` Status uint8 `gorm:"not null";default:0` WareId uint32 `gorm:"not null" json:"ware_id"` Count uint8 `gorm:"not null";default:0 json:"count"` Price float32 `gorm:"not null";default:0 json:"price"` ReceiveWay uint8 `gorm:"not null";default:0` CreatedAt *time.Time }
Click to show internal directories.
Click to hide internal directories.