order-api-map.js
1.86 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
/**
* param 仅为参数校验使用
*/
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': {
accessLog: true,
checkSign: false,
ufo: true,
api: 'ufo.seller.entryGoodsSizeList',
params: {
productId: {type: Number},
limit: {type: Number},
page: {type: Number}
}
},
// 订单列表查询
'/order/list': {
ufo: true,
api: 'ufo.order.list',
// 类型定义
params: {
limit: { type: Number, require: true }, // page size
page: { type: Number, require: true }, // page number
uid: { type: String, require: true },
type: { type: Number, require: true }, // 订单类型
tabType: { type: Number, require: true }, // 订单来源
},
},
// 订单详情
'/order/detail': {
ufo: true,
api: 'ufo.order.detail',
params: {
tabType: { type: Number, require: true }, // 订单来源
order_code: { type: Number, require: true }, // 订单编号
uid: { type: String, require: true },
},
},
// 确认收货
'/buyer/confirm/receipt': {
ufo: true,
api: 'ufo.buyer.confirm',
params: {
order_code: { type: Number, require: true }, // 订单编号
uid: { type: String, require: true },
},
},
};