|
@@ -25,15 +25,16 @@ type Cart struct {
|
|
|
CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
Count int64 `orm:"column(nums)" json:"count"` // int(11)
|
|
Count int64 `orm:"column(nums)" json:"count"` // int(11)
|
|
|
IsBuy bool `orm:"column(is_buy)" json:"is_under_seckill"`
|
|
IsBuy bool `orm:"column(is_buy)" json:"is_under_seckill"`
|
|
|
- ProductName string `orm:"-" json:"product_name"` // decimal(10,2)
|
|
|
|
|
- SizeName string `orm:"-" json:"size_name"` // varchar(64)
|
|
|
|
|
- ColorName string `orm:"-" json:"color_name"` // varchar(64)
|
|
|
|
|
- Cover string `orm:"-" json:"cover"` // decimal(10,2)
|
|
|
|
|
- OriginalPrice int64 `orm:"-" json:"original_price"` // decimal(10,2)
|
|
|
|
|
- Attrs string `orm:"-" json:"attrs"` // decimal(10,2)
|
|
|
|
|
- SeckillStartAt int64 `orm:"-" json:"seckill_start"` // datetime
|
|
|
|
|
- SeckillEndAt int64 `orm:"-" json:"seckill_end"` // datetime
|
|
|
|
|
- SeckilShowPrice int64 `orm:"-" json:"seckill_show_price"` // datetime
|
|
|
|
|
|
|
+ ProductName string `orm:"-" json:"product_name"` // decimal(10,2)
|
|
|
|
|
+ SaleZoneName string `orm:"-" json:"sale_zone_name"` // 销售区名称
|
|
|
|
|
+ SizeName string `orm:"-" json:"size_name"` // varchar(64)
|
|
|
|
|
+ ColorName string `orm:"-" json:"color_name"` // varchar(64)
|
|
|
|
|
+ Cover string `orm:"-" json:"cover"` // decimal(10,2)
|
|
|
|
|
+ OriginalPrice int64 `orm:"-" json:"original_price"` // decimal(10,2)
|
|
|
|
|
+ Attrs string `orm:"-" json:"attrs"` // decimal(10,2)
|
|
|
|
|
+ SeckillStartAt int64 `orm:"-" json:"seckill_start"` // datetime
|
|
|
|
|
+ SeckillEndAt int64 `orm:"-" json:"seckill_end"` // datetime
|
|
|
|
|
+ SeckilShowPrice int64 `orm:"-" json:"seckill_show_price"` // datetime
|
|
|
Package bool `orm:"-" json:"package"`
|
|
Package bool `orm:"-" json:"package"`
|
|
|
UseQuan bool `orm:"-" json:"use_quan"`
|
|
UseQuan bool `orm:"-" json:"use_quan"`
|
|
|
Pv int64 `orm:"-" json:"pv"` // pv
|
|
Pv int64 `orm:"-" json:"pv"` // pv
|