添加用户购买车加载与存储操作

This commit is contained in:
gazebo
2019-10-21 14:17:30 +08:00
parent 73feffcac2
commit d24b8ea53d
4 changed files with 86 additions and 3 deletions

View File

@@ -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 {