aa
This commit is contained in:
@@ -286,3 +286,40 @@ func (*ActMtwmVendor) TableIndex() [][]string {
|
||||
[]string{"StoreID", "SkuID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
type ActEbaiVendor struct {
|
||||
ModelIDCULD
|
||||
BeginAt time.Time `json:"beginAt"` //活动时间
|
||||
EndAt time.Time `json:"endAt"`
|
||||
ActType int `json:"actType"` //活动类型 (折扣,秒杀)
|
||||
Status int `json:"status"` //活动当前的状态,参考值:0-已过期;1-已生效;2-待生效
|
||||
ActID string `orm:"column(act_id)" json:"actID"`
|
||||
OrderLimit int `json:"orderLimit"` //每单限购
|
||||
DayLimit int `json:"dayLimit"` //每人每天限购
|
||||
Period string `json:"period"` //生效时段
|
||||
WeeksTime string `json:"weeksTime"` //生效活动周期
|
||||
}
|
||||
|
||||
func (*ActEbaiVendor) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"ActID"},
|
||||
}
|
||||
}
|
||||
|
||||
type ActEbaiVendorSku struct {
|
||||
ModelIDCULD
|
||||
ActID string `orm:"column(act_id)" json:"actID"`
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
SkuID int `orm:"column(sku_id);index" json:"skuID"`
|
||||
EbaiID string `orm:"column(ebai_id)" json:"ebaiID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||
SkuName string `json:"skuName"` //商品名
|
||||
OriginPrice float64 `json:"originPrice"`
|
||||
ActPrice float64 `json:"actPrice"`
|
||||
}
|
||||
|
||||
func (*ActEbaiVendorSku) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreID", "SkuID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,8 @@ func Init() {
|
||||
orm.RegisterModel(&model.StoreSkuAct{})
|
||||
}
|
||||
orm.RegisterModel(&model.ActMtwmVendor{})
|
||||
orm.RegisterModel(&model.ActEbaiVendor{})
|
||||
orm.RegisterModel(&model.ActEbaiVendorSku{})
|
||||
|
||||
orm.RegisterModel(&model.NewConfig{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user