StoreSkuAct
This commit is contained in:
@@ -161,3 +161,32 @@ func (*StoreOpRequest) TableIndex() [][]string {
|
||||
[]string{"StoreID", "Status", "Type"},
|
||||
}
|
||||
}
|
||||
|
||||
type StoreSkuAct struct {
|
||||
ModelIDCULD // DeletedAt用于表示请求操作结束,而并不一定是删除
|
||||
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
SkuID int `orm:"column(sku_id)"`
|
||||
VendorID int
|
||||
|
||||
ActID int `orm:"column(act_id);index" json:"actID"`
|
||||
VendorActID string `orm:"column(vendor_act_id);size(48);index" json:"vendorActID"`
|
||||
SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
|
||||
VendorPrice int64 `json:"vendorPrice"` // 创建活动时的平台价格
|
||||
ActualActPrice int64 `json:"actualActPrice"` // 单品级活动用,创建活动时商品的活动价格
|
||||
|
||||
EarningActID int `orm:"column(earning_act_id);index" json:"earningActID"`
|
||||
EarningPrice int `json:"earningPrice"`
|
||||
}
|
||||
|
||||
func (*StoreSkuAct) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreID", "SkuID", "VendorID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*StoreSkuAct) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"SkuID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user