京西活动增加折扣

This commit is contained in:
苏尹岚
2020-08-10 11:44:47 +08:00
parent ed61fc4965
commit fb1a7fff64

View File

@@ -13,6 +13,9 @@ const (
ActSkuSecKill = 4 // 秒杀
ActSkuDiscount = 5 // 折扣
ActDiscountTypePrice = 1 //折扣类型是最低价
ActDiscountTypePercentage = 2 //折扣类型是最低折扣
ActOrderBegin = 10
ActOrderMoneyOff = 11
ActOrderMoneyOffCoupon = 12
@@ -74,6 +77,9 @@ type Act struct {
EndAt time.Time `orm:"type(datetime);index" json:"endAt"`
VendorMask int `json:"-"`
Remark string `orm:"size(255)" json:"remark"`
DiscountType int `json:"discountType"` //折扣类型1为最低价2为最低折扣
DiscountValue1 int `json:"DiscountValue1"` //第一档折扣
DiscountValue2 int `json:"DiscountValue2"` //第二档折扣
}
// test