order-api-map.js
7.77 KB
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
module.exports = {
'/api/ufo/invite/friendList': {
ufo: true,
api: 'ufo.invite.code',
params: {},
},
'/api/ufo/invite/recordDetailList': {
ufo: true,
api: 'ufo.invite.getInviteSettlementItemList',
params: {},
},
'/api/yoho/resource': {
service: true,
api: 'operations/api/v5/resource/get',
params: {
content_code: { type: String },
},
},
'/api/union/inviteList': {
api: 'app.union.shareOrder.queryInviteYohoList',
params: {
page: { type: Number },
size: { type: Number },
},
},
'/api/union/queryUnion': {
api: 'app.union.shareOrder.queryUnionTypeByUid',
params: {},
},
// 获取调价商品及尺码信息
'/api/ufo/seller/entryGoodsSizeList': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.seller.entryGoodsSizeList',
params: {
productId: { type: Number },
limit: { type: Number },
page: { type: Number },
},
},
// 调价功能中的下架商品(不卖了)
'/api/ufo/sellerOrder/batchDownShelf': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.sellerOrder.batchDownShelf',
params: {
product_id: { type: Number },
storage_id: { type: Number },
old_price: { type: Number },
num: { type: Number },
},
},
// 预先试算价格,看是否符合调价标准
'/api/ufo/sellerOrder/computeAdjustPrice': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.sellerOrder.computeAdjustPrice',
params: {
product_id: { type: Number },
storage_id: { type: Number },
new_price: { type: Number },
old_price: { type: Number },
num: { type: Number },
},
},
// 未入驻商家试算价格
'/api/ufo/notEntrySeller/computeChangePrice': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.notEntrySeller.computeChangePrice',
params: {
price: { type: Number },
skup: { type: Number },
},
},
// 未入驻商家调价
'/api/ufo/notEntrySeller/changePrice': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.notEntrySeller.changePrice',
params: {
address_id: { type: Number },
price: { type: Number },
skup: { type: Number },
},
},
// 调价
'/api/ufo/sellerOrder/batchAdjustPrice': {
auth: true,
accessLog: true,
checkSign: true,
ufo: true,
api: 'ufo.sellerOrder.batchAdjustPrice',
params: {
product_id: { type: Number },
storage_id: { type: Number },
new_price: { type: Number },
old_price: { type: Number },
num: { type: Number },
},
},
// 订单列表查询
'/api/order/list': {
ufo: true,
auth: true,
api: 'ufo.order.list',
// 类型定义
params: {
limit: { type: Number }, // page size
page: { type: Number, require: true }, // page number
type: { type: Number, require: true }, // 订单类型
tabType: { type: String, require: true }, // 订单来源
},
},
// 订单详情
'/api/order/detail': {
ufo: true,
auth: true,
api: 'ufo.order.detail',
params: {
tabType: { type: String, require: true }, // 订单来源
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 确认收货
'/api/buy/confirm/receipt': {
ufo: true,
auth: true,
api: 'ufo.buyer.confirm',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 不卖了 确认提示信息
'/api/sell/trade/cancel/confirm/info': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancelConfirm',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 不卖了
'/api/sell/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 取消订单
'/api/buy/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家取消订单预信息
'/api/buy/trade/cancel/confirm/info': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancelCompute',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家删除订单
'/api/buy/order/delete': {
auth: true,
ufo: true,
api: 'ufo.buyer.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 卖家删除订单
'/api/sell/order/delete': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 非入住商家订单类表
'/api/ufo/seller/notEntryPrdList': {
auth: true,
ufo: true,
api: 'ufo.seller.notEntryPrdList',
},
// 入住商家类表
'/api/ufo/seller/entryPrdList': {
auth: true,
ufo: true,
api: 'ufo.seller.entryPrdList',
},
// 订单数量
'/api/order/confirm/count': {
ufo: true,
auth: true,
api: 'ufo.order.getAllCnt',
},
// 地址列表
'/api/order/confirm/address': {
auth: true,
api: 'app.address.gethidden',
},
// 卖家计算订单价格
'/api/order/confirm/compute': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.computePublishPrd',
},
// 判断用户状态
'/api/order/user/status': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.entryStatus',
},
// 是绑定支付宝
'/api/order/alipay/status': {
auth: true,
ufo: true,
api: 'ufo.user.aliPayAccountQuery',
},
// 下订单
'/api/order/presubmit': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.publishPrd',
},
// 支付方式
'/api/order/paytype': {
auth: true,
ufo: true,
api: 'ufo.payment.findPayListDetail',
},
// 买家计算订单价格
'/api/order/confirm/buycompute': {
ufo: true,
auth: true,
path: 'shopping',
api: 'ufo.order.compute',
params: {
skup: { type: Number, require: true },
},
},
// 买家预定单订单价格
'/api/order/confirm/buypayment': {
ufo: true,
auth: true,
path: 'shopping',
api: 'ufo.order.payment',
params: {
skup: { type: Number, require: true },
},
},
// 买家获得优惠券
'/api/order/confirm/coupon': {
ufo: true,
auth: true,
path: 'shopping',
api: 'ufo.order.selectCoupon',
params: {
skup: { type: Number, require: true },
},
},
// 订单物流信息
'/api/order/express': {
ufo: true,
auth: true,
api: 'ufo.order.expressDetailInfo',
params: {
tabType: { type: String, require: true }, // 订单来源
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 鉴定中心地址
'/api/order/appraiseAddress': {
ufo: true,
auth: true,
api: 'ufo.order.appraiseAddress',
params: {
skup: { type: String, require: true },
orderCode: { type: String, require: true }, // 订单编号
},
},
// 鉴定中心地址更改公告
'/api/order/noticeAppraiseAddressChanged': {
ufo: true,
auth: true,
api: 'ufo.order.noticeAppraiseAddressChanged',
params: {
orderCode: { type: String, require: true }, // 订单编号
},
},
// 卖家发货
'/api/order/deliverToDepot': {
ufo: true,
auth: true,
api: 'ufo.order.deliverToDepot',
params: {
expressCompanyId: { type: Number, require: true }, // 快递公司id
wayBillCode: { type: String, require: true }, // 物流快递号
orderCode: { type: String, require: true }, // 订单编号
depotNum: { type: Number, require: true }, // 鉴定中心id
},
},
};