Update front_questionnaire.md
Showing
1 changed file
with
36 additions
and
2 deletions
@@ -71,7 +71,7 @@ or | @@ -71,7 +71,7 @@ or | ||
71 | 71 | ||
72 | ``` | 72 | ``` |
73 | 73 | ||
74 | -#### code!=200 为非法状态 | 74 | +#### 注意 code!=200 为非法状态 |
75 | 75 | ||
76 | ### 3、获取问卷(FrontQuestionnaireController/getById4Questionnaire.do) | 76 | ### 3、获取问卷(FrontQuestionnaireController/getById4Questionnaire.do) |
77 | 77 | ||
@@ -226,12 +226,46 @@ or | @@ -226,12 +226,46 @@ or | ||
226 | "addon": "" | 226 | "addon": "" |
227 | } | 227 | } |
228 | ] | 228 | ] |
229 | + | ||
230 | +{ | ||
231 | + "id": 2, | ||
232 | + "uid": 20422456, | ||
233 | + "clientType": 1, | ||
234 | + "startTime": 1487462400, | ||
235 | + "endTime": 1490839162, | ||
236 | + "frontAnswers": [ | ||
237 | + { | ||
238 | + "questionIndex": 0, | ||
239 | + "answerIndex": 0 | ||
240 | + }, | ||
241 | + { | ||
242 | + "questionIndex": 1, | ||
243 | + "answerIndex": 2 | ||
244 | + }, | ||
245 | + { | ||
246 | + "questionIndex": 1, | ||
247 | + "answerIndex": 4, | ||
248 | + "addon": "天猫渠道" | ||
249 | + }, | ||
250 | + { | ||
251 | + "questionIndex": 2, | ||
252 | + "answerIndex": 0, | ||
253 | + "addon": "吴亦凡" | ||
254 | + }, | ||
255 | + { | ||
256 | + "questionIndex": 2, | ||
257 | + "answerIndex": 0, | ||
258 | + "addon": "陈奕迅" | ||
259 | + } | ||
260 | + ] | ||
261 | +} | ||
229 | ``` | 262 | ``` |
263 | +#### 注意 用户答案表 如果是多项选择题,会存储多条记录,answer_index分开存储,如果有补充内容同时存储在addon中,如果是填空题,同样存储多条记录,answer_index分开存储,填空题的答案同时存储在addon中 方便后台结果分析统计 | ||
230 | #### 响应内容 | 264 | #### 响应内容 |
231 | ```json | 265 | ```json |
232 | { | 266 | { |
233 | "code": 200, | 267 | "code": 200, |
234 | - "data": 1, | 268 | + "data": true, |
235 | "message": "success" | 269 | "message": "success" |
236 | } | 270 | } |
237 | ``` | 271 | ``` |
-
Please register or login to post a comment