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