Showing
1 changed file
with
178 additions
and
60 deletions
@@ -19,35 +19,81 @@ http://localhost:8080/platform/PayManageController/findPayManageList | @@ -19,35 +19,81 @@ http://localhost:8080/platform/PayManageController/findPayManageList | ||
19 | 19 | ||
20 | code为200即为成功,否则是失败。 响应JSON格式如下所示: | 20 | code为200即为成功,否则是失败。 响应JSON格式如下所示: |
21 | 21 | ||
22 | - { | ||
23 | - "code": 200, | ||
24 | - "data":{ | ||
25 | - "currentPage":1 | ||
26 | - "rows":[{"id": 2, | ||
27 | - "payName": "支付宝", | ||
28 | - "recommendOrderPage":1, | ||
29 | - "recommendWords":"", | ||
30 | - "sortNumber":2, | ||
31 | - "recommendText1":"", | ||
32 | - "recommendText2":"", | ||
33 | - "status":1, | ||
34 | - "createTime":""; | ||
35 | - "updateTime":""},{ | ||
36 | - "id": 3, | ||
37 | - "payName": "微信", | ||
38 | - "recommendOrderPage":1, | ||
39 | - "recommendWords":"", | ||
40 | - "sortNumber":1, | ||
41 | - "recommendText1":"", | ||
42 | - "recommendText2":"", | ||
43 | - "status":1, | ||
44 | - "createTime":""; | ||
45 | - "updateTime":""}], | ||
46 | - "pageSize":10, | ||
47 | - "total":10, | ||
48 | - "totalPage":1 | ||
49 | - }, | ||
50 | - "md5": "d751713988987e9331980363e24189ce", | 22 | + { |
23 | + "code": 200, | ||
24 | + "data": { | ||
25 | + "list": [ | ||
26 | + { | ||
27 | + "createTime": "2016-07-15 10:43:45", | ||
28 | + "id": 20, | ||
29 | + "list": [], | ||
30 | + "page": 0, | ||
31 | + "payName": "QQ钱包", | ||
32 | + "recommendOrderPage": 0, | ||
33 | + "recommendText1": "", | ||
34 | + "recommendWords": "", | ||
35 | + "size": 0, | ||
36 | + "sortNumber": 4, | ||
37 | + "status": 1, | ||
38 | + "total": 0, | ||
39 | + "totalPage": 0, | ||
40 | + "updateTime": "" | ||
41 | + }, | ||
42 | + { | ||
43 | + "createTime": "2016-07-14 19:35:24", | ||
44 | + "id": 10, | ||
45 | + "list": [], | ||
46 | + "page": 0, | ||
47 | + "payName": "花趴", | ||
48 | + "recommendOrderPage": 0, | ||
49 | + "recommendText1": "", | ||
50 | + "recommendWords": "", | ||
51 | + "size": 0, | ||
52 | + "sortNumber": 3, | ||
53 | + "status": 1, | ||
54 | + "total": 0, | ||
55 | + "totalPage": 0, | ||
56 | + "updateTime": "" | ||
57 | + }, | ||
58 | + { | ||
59 | + "createTime": "2016-06-24 20:47:34", | ||
60 | + "id": 2, | ||
61 | + "list": [], | ||
62 | + "page": 0, | ||
63 | + "payName": "支付宝", | ||
64 | + "recommendOrderPage": 1, | ||
65 | + "recommendText1": "", | ||
66 | + "recommendWords": "推荐文案", | ||
67 | + "size": 0, | ||
68 | + "sortNumber": 6, | ||
69 | + "status": 1, | ||
70 | + "total": 0, | ||
71 | + "totalPage": 0, | ||
72 | + "updateTime": "2016-07-15 14:13:55" | ||
73 | + }, | ||
74 | + { | ||
75 | + "createTime": "2016-06-24 20:47:34", | ||
76 | + "id": 4, | ||
77 | + "list": [], | ||
78 | + "page": 0, | ||
79 | + "payName": "微信", | ||
80 | + "recommendOrderPage": 0, | ||
81 | + "recommendText1": "微信不错", | ||
82 | + "recommendText2": "微信不错", | ||
83 | + "recommendWords": "", | ||
84 | + "size": 0, | ||
85 | + "sortNumber": 1, | ||
86 | + "status": 1, | ||
87 | + "total": 0, | ||
88 | + "totalPage": 0, | ||
89 | + "updateTime": "2016-06-24 20:47:34" | ||
90 | + } | ||
91 | + ], | ||
92 | + "page": 1, | ||
93 | + "size": 10, | ||
94 | + "total": 4, | ||
95 | + "totalPage": 1 | ||
96 | + }, | ||
51 | "message": "操作成功" | 97 | "message": "操作成功" |
52 | } | 98 | } |
53 | 99 | ||
@@ -79,21 +125,37 @@ http://localhost:8080/platform/PayManageController/findPayInfoById | @@ -79,21 +125,37 @@ http://localhost:8080/platform/PayManageController/findPayInfoById | ||
79 | { | 125 | { |
80 | "code": 200, | 126 | "code": 200, |
81 | "data": { | 127 | "data": { |
82 | - "id": 2, | ||
83 | - "payName": "支付宝", | ||
84 | - "recommendOrderPage":1, | ||
85 | - "recommendWords":"", | ||
86 | - "sortNumber":2, | ||
87 | - "recommendText1":"", | ||
88 | - "recommendText2":"", | ||
89 | - "status":1, | ||
90 | - "createTime":""; | ||
91 | - "updateTime":"" | ||
92 | - }, | ||
93 | - "md5": "d751713988987e9331980363e24189ce", | 128 | + "createTime": "2016-06-24 20:47:34", |
129 | + "id": 2, | ||
130 | + "list": [], | ||
131 | + "page": 0, | ||
132 | + "payName": "支付宝", | ||
133 | + "recommendOrderPage": 1, | ||
134 | + "recommendText1": "", | ||
135 | + "recommendWords": "推荐文案", | ||
136 | + "size": 0, | ||
137 | + "sortNumber": 6, | ||
138 | + "status": 1, | ||
139 | + "total": 0, | ||
140 | + "totalPage": 0, | ||
141 | + "updateTime": "2016-07-15 14:13:55" | ||
142 | + }, | ||
94 | "message": "操作成功" | 143 | "message": "操作成功" |
95 | } | 144 | } |
96 | 145 | ||
146 | +其他相应 | ||
147 | + | ||
148 | + { | ||
149 | + "code": 201, | ||
150 | + "message": "请求查询id为空" | ||
151 | + } | ||
152 | + | ||
153 | + { | ||
154 | + "code": 201, | ||
155 | + "message": "请求查询id不存在" | ||
156 | + } | ||
157 | + | ||
158 | + | ||
97 | **3、新增支付方式** | 159 | **3、新增支付方式** |
98 | 160 | ||
99 | 新增支付方式(/PayManageController/createPayMode) | 161 | 新增支付方式(/PayManageController/createPayMode) |
@@ -117,22 +179,48 @@ http://localhost:8080/platform/PayManageController/findPayInfoById | @@ -117,22 +179,48 @@ http://localhost:8080/platform/PayManageController/findPayInfoById | ||
117 | http://localhost:8080/platform/PayManageController/createPayMode | 179 | http://localhost:8080/platform/PayManageController/createPayMode |
118 | 180 | ||
119 | { | 181 | { |
120 | - "payName":"支付宝", | 182 | + "payName":"银联支付", |
121 | "recommendOrderPage":1, | 183 | "recommendOrderPage":1, |
122 | "recommendWords":"推荐文案", | 184 | "recommendWords":"推荐文案", |
123 | - "sortNumber":2, | 185 | + "sortNumber":7, |
124 | "recommendText1":"" | 186 | "recommendText1":"" |
125 | } | 187 | } |
126 | 188 | ||
127 | **响应** | 189 | **响应** |
128 | 190 | ||
129 | { | 191 | { |
130 | - "code": 200, | ||
131 | - "data": {}, | ||
132 | - "md5": "d751713988987e9331980363e24189ce", | ||
133 | - "message": "操作成功" | 192 | + "code": 200, |
193 | + "message": "操作成功" | ||
194 | + } | ||
195 | + | ||
196 | +其他响应情况 | ||
197 | + | ||
198 | + { | ||
199 | + "code": 201, | ||
200 | + "message": "支付方式名称为空" | ||
201 | + } | ||
202 | + | ||
203 | + { | ||
204 | + "code": 202, | ||
205 | + "message": "该支付方式名称已存在" | ||
206 | + } | ||
207 | + | ||
208 | + { | ||
209 | + "code": 201, | ||
210 | + "message": "前端排序值无效" | ||
211 | + } | ||
212 | + | ||
213 | + { | ||
214 | + "code": 201, | ||
215 | + "message": "该前端排序值已存在" | ||
216 | + } | ||
217 | + | ||
218 | + { | ||
219 | + "code": 201, | ||
220 | + "message": "推荐文案为空" | ||
134 | } | 221 | } |
135 | 222 | ||
223 | + | ||
136 | 224 | ||
137 | **4、编辑支付方式详情** | 225 | **4、编辑支付方式详情** |
138 | 226 | ||
@@ -167,10 +255,30 @@ http://localhost:8080/platform/PayManageController/updatePayInfoById | @@ -167,10 +255,30 @@ http://localhost:8080/platform/PayManageController/updatePayInfoById | ||
167 | **响应** | 255 | **响应** |
168 | 256 | ||
169 | { | 257 | { |
170 | - "code": 200, | ||
171 | - "data": {}, | ||
172 | - "md5": "d751713988987e9331980363e24189ce", | ||
173 | - "message": "操作成功" | 258 | + "code": 200, |
259 | + "message": "操作成功" | ||
260 | + } | ||
261 | + | ||
262 | +其他相应 | ||
263 | + | ||
264 | + { | ||
265 | + "code": 201, | ||
266 | + "message": "请求编辑id为空" | ||
267 | + } | ||
268 | + | ||
269 | + { | ||
270 | + "code": 201, | ||
271 | + "message": "前端排序值无效" | ||
272 | + } | ||
273 | + | ||
274 | + { | ||
275 | + "code": 201, | ||
276 | + "message": "该前端排序值已存在" | ||
277 | + } | ||
278 | + | ||
279 | + { | ||
280 | + "code": 201, | ||
281 | + "message": "推荐文案为空" | ||
174 | } | 282 | } |
175 | 283 | ||
176 | 284 | ||
@@ -197,12 +305,17 @@ http://localhost:8080/platform/PayManageController/openPayModeById | @@ -197,12 +305,17 @@ http://localhost:8080/platform/PayManageController/openPayModeById | ||
197 | **响应** | 305 | **响应** |
198 | 306 | ||
199 | { | 307 | { |
200 | - "code": 200, | ||
201 | - "data": {}, | ||
202 | - "md5": "d751713988987e9331980363e24189ce", | ||
203 | - "message": "操作成功" | 308 | + "code": 200, |
309 | + "message": "操作成功" | ||
204 | } | 310 | } |
205 | 311 | ||
312 | +其他响应 | ||
313 | + | ||
314 | + { | ||
315 | + "code": 201, | ||
316 | + "message": "开启请求id为空" | ||
317 | + } | ||
318 | + | ||
206 | 319 | ||
207 | **6、关闭支付方式** | 320 | **6、关闭支付方式** |
208 | 321 | ||
@@ -227,8 +340,13 @@ http://localhost:8080/platform/PayManageController/closePayModeById | @@ -227,8 +340,13 @@ http://localhost:8080/platform/PayManageController/closePayModeById | ||
227 | **响应** | 340 | **响应** |
228 | 341 | ||
229 | { | 342 | { |
230 | - "code": 200, | ||
231 | - "data": {}, | ||
232 | - "md5": "d751713988987e9331980363e24189ce", | ||
233 | - "message": "操作成功" | ||
234 | - } | ||
343 | + "code": 200, | ||
344 | + "message": "操作成功" | ||
345 | + } | ||
346 | + | ||
347 | +其他响应 | ||
348 | + | ||
349 | + { | ||
350 | + "code": 201, | ||
351 | + "message": "关闭请求id为空" | ||
352 | + } |
-
Please register or login to post a comment