Showing
1 changed file
with
35 additions
and
1 deletions
@@ -1258,4 +1258,38 @@ code为200即为成功,否则是失败。 | @@ -1258,4 +1258,38 @@ code为200即为成功,否则是失败。 | ||
1258 | "md5": "5e9e33f14cfb223f8833008c9c5b27fe", | 1258 | "md5": "5e9e33f14cfb223f8833008c9c5b27fe", |
1259 | "message": "Category Product List." | 1259 | "message": "Category Product List." |
1260 | } | 1260 | } |
1261 | -``` | ||
1261 | +``` | ||
1262 | + | ||
1263 | +## 32、添加反馈 ## | ||
1264 | +#### 请求参数 | ||
1265 | +| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 | | ||
1266 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
1267 | +|feedback_id|int|10|否|||| | ||
1268 | +|question_id|int|20|否|||| | ||
1269 | +|solution|string|100|是|||| | ||
1270 | +|answer|string|200|是|||solution和answer不能同时为空| | ||
1271 | +|uid|int|20|是||0|用户id| | ||
1272 | +#### 返回错误 | ||
1273 | +|错误code|错误提示| | ||
1274 | +|:-------| -----:| | ||
1275 | +|400|Question Id is null | | ||
1276 | +|401|Feedback Id is null| | ||
1277 | +|402|Answer is null| | ||
1278 | + | ||
1279 | +注意,通用的头部没有列出。 | ||
1280 | +http://127.0.0.1:8080/gateway/?method=open.feedback.submit&question_id=2&feedback_id=4&solution=2 | ||
1281 | + | ||
1282 | +### 响应 | ||
1283 | +code为200即为成功,否则是失败。 | ||
1284 | +用户响应JSON格式如下所示: | ||
1285 | +```json | ||
1286 | +{ | ||
1287 | + "alg": "SALT_MD5", | ||
1288 | + "code": 200, | ||
1289 | + "data": { | ||
1290 | + "result": 1 | ||
1291 | + }, | ||
1292 | + "md5": "180dad439fb2b74b6731a3b70cf6fca0", | ||
1293 | + "message": "success" | ||
1294 | +} | ||
1295 | +``` |
-
Please register or login to post a comment