order-api-map.js
5.33 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
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/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/buyer/confirm/receipt': {
ufo: true,
auth: true,
api: 'ufo.buyer.confirm',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 不卖了 确认提示信息
'/api/seller/trade/cancle/confirm/info': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancelConfirm',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 不卖了
'/api/seller/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 取消订单
'/api/buyer/trade/cancel': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancel',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家删除订单
'/api/buyer/order/delete': {
auth: true,
ufo: true,
api: 'ufo.buyer.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家删除订单
'/api/seller/order/delete': {
auth: true,
ufo: true,
api: 'ufo.sellerOrder.delete',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 买家取消订单预信息
'/pai/buyer/trade/cancel/info': {
auth: true,
ufo: true,
api: 'ufo.buyer.cancelCompute',
params: {
orderCode: { type: Number, require: true }, // 订单编号
},
},
// 订单数量
'/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/express': {
ufo: true,
auth: true,
api: 'ufo.order.expressDetailInfo',
params: {
tabType: { type: String, require: true }, // 订单来源
orderCode: { type: Number, require: true }, // 订单编号
},
},
};