+ OrderDiscountInfo

This commit is contained in:
gazebo
2019-07-01 10:43:27 +08:00
parent 9f2a572919
commit 4aa84c1b52

View File

@@ -76,6 +76,7 @@ const (
OrderSkuDiscountTypeZhe = "g_zhe" OrderSkuDiscountTypeZhe = "g_zhe"
OrderSkuDiscountTypeReduce = "g_reduce" OrderSkuDiscountTypeReduce = "g_reduce"
OrderSkuDiscountTypeZeng = "zeng"
) )
const ( const (
@@ -148,8 +149,7 @@ type OrderProductInfo struct {
WeightType int `json:"weight_type"` WeightType int `json:"weight_type"`
} }
type OrderDetailInfo struct { type OrderDiscountInfo struct {
Discount []*struct {
ActivityID string `json:"activity_id"` ActivityID string `json:"activity_id"`
AgentRate int `json:"agent_rate"` AgentRate int `json:"agent_rate"`
BaiduRate int `json:"baidu_rate"` BaiduRate int `json:"baidu_rate"`
@@ -167,8 +167,10 @@ type OrderDetailInfo struct {
RuleID string `json:"rule_id"` RuleID string `json:"rule_id"`
ShopRate int `json:"shop_rate"` ShopRate int `json:"shop_rate"`
Type string `json:"type"` Type string `json:"type"`
UserRate int `json:"user_rate,omitempty"` }
} `json:"discount"`
type OrderDetailInfo struct {
Discount []*OrderDiscountInfo `json:"discount"`
Order *struct { Order *struct {
AtshopTime int `json:"atshop_time"` AtshopTime int `json:"atshop_time"`
CancelTime string `json:"cancel_time"` CancelTime string `json:"cancel_time"`