a
This commit is contained in:
@@ -262,15 +262,26 @@ func (*StoreSkuAct) TableUnique() [][]string {
|
|||||||
|
|
||||||
type ActMtwmVendor struct {
|
type ActMtwmVendor struct {
|
||||||
ModelIDCUL
|
ModelIDCUL
|
||||||
StoreID int `orm:"column(store_id)" json:"store_id"`
|
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||||
SkuID int `orm:"column(sku_id);index" json:"sku_id"`
|
SkuID int `orm:"column(sku_id);index" json:"skuID"`
|
||||||
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendor_store_id"`
|
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||||
|
BeginAt time.Time `json:"beginAt"` //活动时间
|
||||||
ActPercentage int `json:"actPercentage"` // 直降活动百分比
|
EndAt time.Time `json:"endAt"`
|
||||||
SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
|
SkuName string `json:"skuName"` //商品名
|
||||||
// ActID int `orm:"column(act_id);index" json:"actID"`
|
OriginPrice float64 `json:"originPrice"`
|
||||||
VendorActID string `orm:"column(vendor_act_id);size(48);index" json:"vendorActID"`
|
ActPrice float64 `json:"actPrice"`
|
||||||
HintActID int `orm:"column(hint_act_id);size(48);index" json:"hintActID"`
|
DiscountCoefficient float64 `json:"discountCoefficient"` //折扣系数
|
||||||
VendorActPrice int64 `json:"vendorActPrice"` // 保存数据用,实际的活动价
|
Status int `json:"status"` //活动当前的状态,参考值:0-已过期;1-已生效;2-待生效
|
||||||
Remark string `orm:"column(remark);size(1024)" json:"remark"`
|
ItemID string `orm:"column(item_id)" json:"itemID"`
|
||||||
|
OrderLimit int `json:"orderLimit"` //每单限购
|
||||||
|
DayLimit int `json:"dayLimit"` //当日活动库存
|
||||||
|
Period string `json:"period"` //生效时段
|
||||||
|
WeeksTime string `json:"weeksTime"` //生效活动周期
|
||||||
|
SettingType int `json:"settingType"` //活动开展类型,参考值:0-按折扣系数开展活动;1-按折扣价格开展活动。
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ActMtwmVendor) TableIndex() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"StoreID", "SkuID", "DeletedAt"},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ func Init() {
|
|||||||
if globals.IsStoreSkuAct {
|
if globals.IsStoreSkuAct {
|
||||||
orm.RegisterModel(&model.StoreSkuAct{})
|
orm.RegisterModel(&model.StoreSkuAct{})
|
||||||
}
|
}
|
||||||
|
orm.RegisterModel(&model.ActMtwmVendor{})
|
||||||
|
|
||||||
orm.RegisterModel(&model.NewConfig{})
|
orm.RegisterModel(&model.NewConfig{})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user