|
@@ -22,23 +22,24 @@ const (
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
type OrderDetail struct {
|
|
type OrderDetail struct {
|
|
|
- Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
|
|
|
- ProductId int64 `orm:"column(product_id)" json:"product_id"` // int(11)
|
|
|
|
|
- OrderId int64 `orm:"column(order_id)" json:"-"` // int(11)
|
|
|
|
|
- Send bool `orm:"column(is_zeng)" json:"send"`
|
|
|
|
|
- OrderNo string `orm:"column(order_no)" json:"order_id"` // varchar(64)
|
|
|
|
|
- Price int64 `orm:"column(price)" json:"price"` // int(11)
|
|
|
|
|
- CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
|
|
- Count int64 `orm:"column(nums)" json:"count"` // int(11)
|
|
|
|
|
- ProductName string `orm:"column(product_name)" json:"product_name"` // varchar(255)
|
|
|
|
|
- SizeName string `orm:"column(size_name)" json:"size_name"` // varchar(255)
|
|
|
|
|
- ColorName string `orm:"column(color_name)" json:"color_name"` // varchar(255)
|
|
|
|
|
- Cover string `orm:"-" json:"cover"` // decimal(10,2)
|
|
|
|
|
- OriginalPrice float64 `orm:"-" json:"original_price"` // decimal(10,2)
|
|
|
|
|
- Commend bool `orm:"column(commend)" json:"commend"`
|
|
|
|
|
- UnitRoboBalancePrice int64 `orm:"column(unit_robo_balance_price)" json:"unit_robo_balance_price"`
|
|
|
|
|
- Attrs string `orm:"-" json:"attrs"` // decimal(10,2)
|
|
|
|
|
- Depart int64 `orm:"column(depart)" json:"-"` // datetime
|
|
|
|
|
|
|
+ Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
|
|
|
+ ProductId int64 `orm:"column(product_id)" json:"product_id"` // int(11)
|
|
|
|
|
+ OrderId int64 `orm:"column(order_id)" json:"-"` // int(11)
|
|
|
|
|
+ Send bool `orm:"column(is_zeng)" json:"send"`
|
|
|
|
|
+ OrderNo string `orm:"column(order_no)" json:"order_id"` // varchar(64)
|
|
|
|
|
+ Price int64 `orm:"column(price)" json:"price"` // int(11)
|
|
|
|
|
+ CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
|
|
+ Count int64 `orm:"column(nums)" json:"count"` // int(11)
|
|
|
|
|
+ ProductName string `orm:"column(product_name)" json:"product_name"` // varchar(255)
|
|
|
|
|
+ SizeName string `orm:"column(size_name)" json:"size_name"` // varchar(255)
|
|
|
|
|
+ ColorName string `orm:"column(color_name)" json:"color_name"` // varchar(255)
|
|
|
|
|
+ Cover string `orm:"-" json:"cover"` // decimal(10,2)
|
|
|
|
|
+ OriginalPrice float64 `orm:"-" json:"original_price"` // decimal(10,2)
|
|
|
|
|
+ Commend bool `orm:"column(commend)" json:"commend"`
|
|
|
|
|
+ UnitRoboBalancePrice int64 `orm:"column(unit_robo_balance_price)" json:"unit_robo_balance_price"`
|
|
|
|
|
+ Attrs string `orm:"-" json:"attrs"` // decimal(10,2)
|
|
|
|
|
+ Depart int64 `orm:"column(depart)" json:"-"` // datetime
|
|
|
|
|
+ PacakageList []*ProductItem `orm:"-" json:"pakage_list"` // varchar(255)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (self *OrderDetail) TableName() string {
|
|
func (self *OrderDetail) TableName() string {
|