liaoxujun@qq.com
2024-04-10 7592c71981d9bc2b45e7b748f653ce8bb4c389ac
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
/***********************************************************************
 *            Project: baifenBinfa
 *        ProjectName: 百分兵法管理系统                               
 *                Web: http://chuanyin.com                     
 *             Author:                                        
 *              Email:                               
 *         CreateTime: 202403/02   
 *        Description: 暂无
 ***********************************************************************/
 
using System.Collections.Generic;
 
namespace CoreCms.Net.Model.ViewModels.Api
{
    #region 查询货运公司列表返回实体数据V1
 
    /// <summary>
    ///     查询货运公司列表返回实体数据V1
    /// </summary>
    public class ShowApiGetExpressCompanyListResultV1
    {
        /// <summary>
        ///     错误说明
        /// </summary>
        public string showapi_res_error { get; set; }
 
        /// <summary>
        ///     状态码
        /// </summary>
        public int showapi_res_code { get; set; }
 
        /// <summary>
        ///     返回资源序列
        /// </summary>
        public string showapi_res_id { get; set; }
 
        /// <summary>
        ///     返回资源主体
        /// </summary>
        public ResultBody showapi_res_body { get; set; }
    }
 
    public class ResultBody
    {
        public int ret_code { get; set; }
        public bool flag { get; set; }
        public int page { get; set; }
        public int showapi_fee_codepage { get; set; }
        public int allNum { get; set; }
        public string msg { get; set; }
        public int maxSize { get; set; }
 
        public List<expressCompanyList> expressList { get; set; }
    }
 
    public class expressCompanyList
    {
        public string imgUrl { get; set; }
        public string simpleName { get; set; }
        public string phone { get; set; }
        public string expName { get; set; }
        public string note { get; set; }
        public string url { get; set; }
    }
 
    //错误码
    //-1,系统调用错误
    //-2,可调用次数或金额为0
    //-3,读取超时
    //-4,服务端返回数据解析错误
    //-5,后端服务器DNS解析错误
    //-6,服务不存在或未上线
    //-7, API创建者的网关资源不足
    //-1000,系统维护
    //-1002,showapi_appid字段必传
    //-1003,showapi_sign字段必传
    //-1004,签名sign验证有误
    //-1005,showapi_timestamp无效
    //-1006,app无权限调用接口 
    //-1007,没有订购套餐
    //-1008,服务商关闭对您的调用权限
    //-1009,调用频率受限
    //-1010,找不到您的应用
    //-1011,子授权app_child_id无效
    //-1012,子授权已过期或失效
    //-1013,子授权ip受限
    //-1014,token权限无效
 
    #endregion 查询物流信息
 
    #region 查询货运公司列表返回实体数据V2
    public class Express_listItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string img_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 顺丰速运
        /// </summary>
        public string exp_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string note { get; set; }
    }
 
    public class Showapi_res_body
    {
        /// <summary>
        /// 
        /// </summary>
        public int ret_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Express_listItem> express_list { get; set; }
        /// <summary>
        /// 查询成功!
        /// </summary>
        public string msg { get; set; }
    }
 
    public class ShowApiGetExpressCompanyListResultV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_error { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_res_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Showapi_res_body showapi_res_body { get; set; }
    }
 
    #endregion
 
    #region 查询物流轨迹返回值V1
 
    /// <summary>
    ///     查询物流轨迹返回值V1
    /// </summary>
    public class ShowApiGetExpressPollResultV1
    {
        /// <summary>
        ///     错误说明
        /// </summary>
        public string showapi_res_error { get; set; }
 
        /// <summary>
        ///     状态码
        /// </summary>
        public int showapi_res_code { get; set; }
 
        /// <summary>
        ///     返回资源序列
        /// </summary>
        public string showapi_res_id { get; set; }
 
        /// <summary>
        ///     返回资源主体
        /// </summary>
        public ExpressPollResBodyV1 showapi_res_body { get; set; }
    }
 
 
    public class ExpressPollResBodyV1
    {
        public long update { get; set; }
        public string upgrade_info { get; set; }
        public string updateStr { get; set; }
        public string logo { get; set; }
        public int dataSize { get; set; }
        public int status { get; set; }
        public int fee_num { get; set; }
        public string tel { get; set; }
        public List<PollDataV1> data { get; set; }
 
        public string expSpellName { get; set; }
        public string msg { get; set; }
        public string mailNo { get; set; }
        public int queryTimes { get; set; }
        public int ret_code { get; set; }
        public bool flag { get; set; }
        public string expTextName { get; set; }
        public List<object> possibleExpList { get; set; }
    }
 
    public class PollDataV1
    {
        public string time { get; set; }
        public string context { get; set; }
    }
 
    #endregion
 
    #region 查询物流轨迹返回值V2
 
 
    public class ShowApiGetExpressPollResultV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_error { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_fee_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_res_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string showapi_res_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExpressPollResBodyV2 showapi_res_body { get; set; }
    }
 
 
    public class PollDataV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string location { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 浙江省-台州市
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 【台州市】已离开 浙江台州分拨交付中心;发往 山东潍坊分拨交付中心
        /// </summary>
        public string context { get; set; }
    }
 
    public class ExpressPollResBodyV2
    {
        /// <summary>
        /// 
        /// </summary>
        public string delivery_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string nu { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string logo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string original_com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string com { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tel { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<PollDataV2>? data { get; set; }
        /// <summary>
        /// 查询成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string>? possible_exp_list { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ret_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int showapi_inner_fee_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string update_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int query_num { get; set; }
        /// <summary>
        /// 韵达速递
        /// </summary>
        public string com_name { get; set; }
    }
 
    #endregion
 
 
}