LimitCode.js
3.36 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
/**
* Created by yoho on 2016/6/21.
*/
module.exports = {
namespace: "LimitCode",
apis: {
/*************************************限购码管理*************************************/
getLimitCodeList: {
title: " 限购码列表",
url: "/limitCode/getLimitCodeList",
params: {
page: {type: Number},
size: {type: Number},
status: {type: Number},
batchNo: {type: String},
name: {type: String},
reqDepartment: {type: String},
sku: {type: String},
skn: {type: String}
}
},
addLimitCode: {
title: "添加限购码",
url: '/limitCode/addLimitCode',
params: {
name: {type: String},
limitTimes: {type: Number},
reqDepartment: {type: String},
limitDateFrom: {type: String},
limitDateTo: {type: String},
describe: {type: String},
userUseLimit: {type: Number},
userTypeLimit: {type: String},
limitSkn: {type: String},
creatorName: {type: String},
creatorId: {type: Number},
status: {type: Number},
skus: {type: String},
skuTimes: {type: String},
limitCodeType: {type: String}
}
},
checkSknValidity: {
title: "检查SKN的合法性并且获得其下的所有SKU",
url: "/limitCode/checkSknValidity",
params: {
skn: {type: String},
id: {type: String}
}
},
getLimitCode: {
title: "获取某个限购码",
url: "/limitCode/getLimitCode",
params: {
id: {type: String}
}
},
updateLimitCode: {
title: "编辑限购码",
url: '/limitCode/updateLimitCode',
params: {
name: {type: String},
limitTimes: {type: Number},
reqDepartment: {type: String},
limitDateFrom: {type: String},
limitDateTo: {type: String},
describe: {type: String},
userUseLimit: {type: Number},
userTypeLimit: {type: String},
limitSkn: {type: String},
creatorName: {type: String},
creatorId: {type: Number},
status: {type: Number},
id: {type: Number},
batchNo: {type: Number},
skus: {type: String},
skuTimes: {type: String},
limitCodeType: {type: String}
}
},
auditLimitCode: {
title: " 通过、驳回、作废限购码接口",
url: "/limitCode/auditLimitCode",
params: {
id: {type: Number},
status: {type: Number},
reason: {type: String}
}
},
getLimitCodeCountByStatus: {
title: "tab卡数据",
url: '/limitCode/getLimitCodeCountByStatus',
params: {
reqDepartment: {type: String},
name: {type: String},
batchNo: {type: Number}
}
}
}
};