limitCode
5.84 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
# 限购码管理接口服务定义
---------------------
# 添加限购码接口
> 接口名: `/limitCode/addLimitCode`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|name|string|潮流尖货限购码|限购码名称|是|
|limitTimes|int|100|数量|是|
|reqDepartment|string|运营部|申请部门|否|
|limitDateFrom|string|2016-02-01 14:00:00|起始时间|是|
|limitDateTo|string|2016-02-20 14:00:00|失效时间|是|
|describe|string|耐克新款|限购码描述|否|
|userUseLimit|int|1|用户使用次数|否|
|userTypeLimit|int|1|用户类型|否
|limitSkn|string|50012345|限购商品skn|否
|creatorName|string|张三|创建者名称|否
|creatorId|int|12401|创建者ID|否
|createTime|string|2016-01-29 15:00:00|创建时间|否
|status|int|0|限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废|否
|reason|string|预算不够|驳回原因|否
|batchNo|string|201602021023|批次号|是
|auditTime|string|2016-01-30 15:00:00|审核时间|否
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "addLimitCode success."
}
```
# 获取限购码列表
> 接口名: `/limitCode/getLimitCodeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
``` json
{
"code": 200,
"data": {
"list": [
{
"batchNo": "201602031002",
"createTime": "2016-02-03 17:33:08",
"describe": "",
"id": 7,
"limitDateFrom": "2016-01-01",
"limitDateTo": "2016-01-31",
"limitTimes": 10,
"name": "第一批次限购码",
"reqDepartment": "运营部",
"status": 0,
"userUseLimit": 1
},
{
"auditTime": "2016-01-29 18:15:01",
"batchNo": "201601291001",
"createTime": "2016-02-03 15:12:51",
"creatorId": 1111,
"creatorName": "test",
"describe": "第1批次限购码",
"id": 6,
"limitDateFrom": "2016-01-01",
"limitDateTo": "2016-01-31",
"limitSkn": "5123456",
"limitTimes": 10,
"name": "第1批次限购码",
"reqDepartment": "运营部",
"status": 1,
"userTypeLimit": "1",
"userUseLimit": 1
},
{
"auditTime": "2016-01-29 17:56:02",
"batchNo": "201601291002",
"createTime": "2016-01-29 17:56:02",
"creatorId": 1111,
"creatorName": "test",
"describe": "第6批次限购码",
"id": 5,
"limitDateFrom": "2016-01-01",
"limitDateTo": "2016-01-31",
"limitSkn": "5123456",
"limitTimes": 10,
"name": "第6批次限购码",
"reqDepartment": "运营部",
"status": 1,
"userTypeLimit": "1",
"userUseLimit": 1
}
],
"page": 1,
"size": 20,
"total": 3,
"totalPage": 1
},
"md5": "6d6052f3afcec10ba4d4c8490cd8e5eb",
"message": "getLimitCode success."
}
```
# 更新限购码接口
> 接口名: `/limitCode/updateLimitCode`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|int|6|限购码ID|是|
|name|string|潮流尖货限购码|限购码名称|是|
|limitTimes|int|100|数量|是|
|reqDepartment|string|运营部|申请部门|否|
|limitDateFrom|string|2016-02-01 14:00:00|起始时间|是|
|limitDateTo|string|2016-02-20 14:00:00|失效时间|是|
|describe|string|耐克新款|限购码描述|否|
|userUseLimit|int|1|用户使用次数|否|
|userTypeLimit|int|1|用户类型|否
|limitSkn|string|50012345|限购商品skn|否
|creatorName|string|张三|创建者名称|否
|creatorId|int|12401|创建者ID|否
|createTime|string|2016-01-29 15:00:00|创建时间|否
|status|int|0|限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废|否
|reason|string|预算不够|驳回原因|否
|batchNo|string|201602021023|批次号|是
|auditTime|string|2016-01-30 15:00:00|审核时间|否
---------------------
### 返回
``` json
{
"code": 500,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "updateLimitCode success."
}
```
# 审核限购码接口
> 接口名: `/limitCode/auditLimitCode`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|int|6|限购码ID|是
|status|int|0|限购码状态0:待审核 1:审核通过 2:驳回 3:过期 4:作废|否
|reason|string|预算不够|驳回原因|否
|auditTime|string|2016-01-30 15:00:00|审核时间|否
---------------------
### 返回
``` json
{
"code": 500,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "auditLimitCode success."
}
```
# 删除限购码接口
> 接口名: `/limitCode/deleteLimitCode`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|int|6|限购码ID|是
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "deleteLimitCode success."
}
```
# 获取各种状态限购码数量接口
> 接口名: `/limitCode/getLimitCodeCountByStatus`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
---------------------
### 返回
``` json
{
"code": 200,
"data": {
"0": "1",
"1": "1",
"all": "2"
},
"md5": "f29559d3d32c56f9cd94c892128cbae8",
"message": "deleteLimitCode success."
}
```