1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
package schl
type CommonRes struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
type PubilcParams struct {
AppID string `json:"appId"`
Nonce string `json:"nonce"`
Timestamp string `json:"timestamp"`
Signature string `json:"signature"`
}
type CategoryRes struct {
CommonRes
Result []CategoryItem `json:"result"`
}
type CategoryItem struct {
Id int `json:"id"`
Img string `json:"img"`
Name string `json:"name"`
SupId int `json:"supId"`
}
type ListGoodsRes struct {
CommonRes
Result []ListGoodsItem `json:"result"`
}
type ListGoodsItem struct {
Code string `json:"code"`
Name string `json:"name"`
ItemMainImg string `json:"itemMainImg"`
Imgs interface{} `json:"imgs"`
DetailImgs interface{} `json:"detailImgs"`
GoodsVideo string `json:"goodsVideo"`
ShareImg string `json:"shareImg"`
ShareVideo string `json:"shareVideo"`
MarketPrice float64 `json:"marketPrice"`
MarketPriceTagImg string `json:"marketPriceTagImg"`
NormalPrice float64 `json:"normalPrice"`
Vip1Price float64 `json:"vip1Price"`
Vip2Price float64 `json:"vip2Price"`
CurrVipPrice float64 `json:"currVipPrice"`
MinBuyNum int `json:"minBuyNum"`
PlusStep int `json:"plusStep"`
Unit string `json:"unit"`
Weight float64 `json:"weight"`
Volume float64 `json:"volume"`
Stock int `json:"stock"`
State int `json:"state"`
ForbidBuyArea string `json:"forbidBuyArea"`
SupplierFreightPayer int `json:"supplierFreightPayer"`
CategoryGRList []struct {
C1 int `json:"c1"`
C2 int `json:"c2"`
} `json:"categoryGRList"`
}
type ListGoodsByCodesReq struct {
CodeList []string `json:"codeList"` //["ZGRSH12","ZGYSH11","ZGJRJ10","ZGGTJ09","CWSKYTJ15","CWDYLG14"]
}
type OrderFreightPreviewReq struct {
Province string `json:"province"`
City string `json:"city"`
District string `json:"district"`
AddressDetail string `json:"addressDetail"`
GoodsParamsList string `json:"goodsParamsList"` //[{\"code\":\"goodsCode1\",\"goodsNum\":1}]
}
type OrderFreightPreviewRes struct {
CommonRes
Result OrderFreightPreviewItem `json:"result"`
}
type OrderFreightPreviewItem struct {
ExpName string `json:"expName"` //运费总额
Freight float64 `json:"freight"` //快递编码
ExpCode string `json:"expCode"` //快递名称
}
type CreateOrderReq struct {
PlatformOrderNo string `json:"platformOrderNo"` //商户单号,若创建多商品订单建议不传该参
CustName string `json:"custName"` //收货人
CustMobile string `json:"custMobile"` //收货人联系方式
Province string `json:"province"` //省
City string `json:"city"` //市
District string `json:"district"` //区
AddressDetail string `json:"addressDetail"`
GoodsParamsList string `json:"goodsParamsList"` //[{\"code\":\"goodsCode1\",\"goodsNum\":1}]code需创建订单的商品编码 goodsNum 数量
}
type CreateOrderRes struct {
CommonRes
Result CreateOrderItem `json:"result"`
}
type CreateOrderItem struct {
UnionId string `json:"unionId"` //平台订单编号,用于后续操作平台订单
PayMoney string `json:"payMoney"` //支付总额
GoodsMoneyAmount string `json:"goodsMoneyAmount"` //商品总额
ExpFeeAmount string `json:"expFeeAmount"` //运费总额
ExpCode string `json:"expCode"` //快递编码
ExpName string `json:"expName"` //快递名称
}
type SyncOrderExpNoReq struct {
UnionIdList string `json:"unionIdList"` //平台订单编号数组,需转成String传入
}
type SyncOrderExpNoRes struct {
CommonRes
Result []struct {
UnionId string `json:"unionId"` //平台订单编号
ExpNos []string `json:"expNos"` //快递/物流单号
} `json:"result"`
}
type QueryExpTrackReq struct {
UnionId string `json:"unionId"` //平台订单编号,用于后续操作平台订单
ExpNos string `json:"expNo"` //订单对应的快递单号数组
}
type QueryExpTrackRes struct {
CommonRes
Result QueryExpTrackItem `json:"result"`
}
type QueryExpTrackItem struct {
ExpInfo string `json:"expInfo"` //json
}
type ExpInfoItem struct {
Number string `json:"number"`
Type string `json:"type"`
List []struct {
Time string `json:"time"`
Status string `json:"status"`
} `json:"list"`
Deliverystatus string `json:"deliverystatus"`
Issign string `json:"issign"`
ExpName string `json:"expName"`
ExpSite string `json:"expSite"`
ExpPhone string `json:"expPhone"`
Logo string `json:"logo"`
Courier string `json:"courier"`
CourierPhone string `json:"courierPhone"`
UpdateTime string `json:"updateTime"`
TakeTime string `json:"takeTime"`
}