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