添加用户购买车加载与存储操作
This commit is contained in:
@@ -135,15 +135,18 @@ func (*UserDeliveryAddress) TableUnique() [][]string {
|
||||
}
|
||||
|
||||
type UserCartItem struct {
|
||||
ModelIDCUL
|
||||
ID int64 `orm:"column(id)" json:"-"`
|
||||
CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"`
|
||||
UpdatedAt time.Time `orm:"auto_now;type(datetime)" json:"-"`
|
||||
LastOperator string `orm:"size(32)" json:"-"` // 最后操作员
|
||||
|
||||
UserID string `orm:"size(48);column(user_id)" json:"userID"`
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
SkuID int `orm:"column(sku_id)"`
|
||||
ActID int `orm:"column(act_id)" json:"actID"`
|
||||
|
||||
Count int `json:"count"`
|
||||
AddedAt time.Time `orm:"auto_now_add;type(datetime)" json:"addedAt"`
|
||||
Count int `json:"count"`
|
||||
Price int `json:"price"`
|
||||
}
|
||||
|
||||
func (*UserCartItem) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user