Update front_questionnaire.md
Showing
1 changed file
with
99 additions
and
4 deletions
@@ -26,6 +26,25 @@ | @@ -26,6 +26,25 @@ | ||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | +{ | ||
30 | + "code": 200, | ||
31 | + "data": { | ||
32 | + "rows": [ | ||
33 | + { | ||
34 | + "description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。", | ||
35 | + "id": 4, | ||
36 | + "title": "YOHO!品牌大调查" | ||
37 | + }, | ||
38 | + { | ||
39 | + "description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。", | ||
40 | + "id": 2, | ||
41 | + "title": "YOHO!品牌大调查" | ||
42 | + } | ||
43 | + ], | ||
44 | + "total": 2 | ||
45 | + }, | ||
46 | + "message": "success" | ||
47 | +} | ||
29 | ``` | 48 | ``` |
30 | 49 | ||
31 | ### 2、验证获取问卷(FrontQuestionnaireController/validateGetById4Questionnaire.do) | 50 | ### 2、验证获取问卷(FrontQuestionnaireController/validateGetById4Questionnaire.do) |
@@ -39,14 +58,21 @@ | @@ -39,14 +58,21 @@ | ||
39 | ```json | 58 | ```json |
40 | { | 59 | { |
41 | "code": 200, | 60 | "code": 200, |
42 | - "message": "success", | ||
43 | - "data": { | ||
44 | - true or false | ||
45 | - } | 61 | + "data": true, |
62 | + "message": "success" | ||
63 | +} | ||
64 | + | ||
65 | +or | ||
66 | +{ | ||
67 | + "code": 203, | ||
68 | + "data": false, | ||
69 | + "message": "问卷处于未开始状态" | ||
46 | } | 70 | } |
47 | 71 | ||
48 | ``` | 72 | ``` |
49 | 73 | ||
74 | +#### code!=200 为非法状态 | ||
75 | + | ||
50 | ### 3、获取问卷(FrontQuestionnaireController/getById4Questionnaire.do) | 76 | ### 3、获取问卷(FrontQuestionnaireController/getById4Questionnaire.do) |
51 | 77 | ||
52 | #### 请求参数 | 78 | #### 请求参数 |
@@ -98,6 +124,75 @@ | @@ -98,6 +124,75 @@ | ||
98 | "md5": "6fa464cf72538ad2c25fa24d20dcdd20" | 124 | "md5": "6fa464cf72538ad2c25fa24d20dcdd20" |
99 | } | 125 | } |
100 | 126 | ||
127 | +{ | ||
128 | + "code": 200, | ||
129 | + "data": { | ||
130 | + "description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。", | ||
131 | + "id": 2, | ||
132 | + "questions": [ | ||
133 | + { | ||
134 | + "questionContents": [ | ||
135 | + { | ||
136 | + "option": "A.朋友介绍" | ||
137 | + }, | ||
138 | + { | ||
139 | + "option": "B. 视频广告" | ||
140 | + }, | ||
141 | + { | ||
142 | + "option": "C.平面广告" | ||
143 | + }, | ||
144 | + { | ||
145 | + "option": "D.线下活动" | ||
146 | + }, | ||
147 | + { | ||
148 | + "addon": 1, | ||
149 | + "option": "E.其他渠道" | ||
150 | + } | ||
151 | + ], | ||
152 | + "questionIndex": 0, | ||
153 | + "questionTitle": "您通过什么渠道知道有货的呢", | ||
154 | + "questionType": 1 | ||
155 | + }, | ||
156 | + { | ||
157 | + "questionContents": [ | ||
158 | + { | ||
159 | + "option": "A.朋友介绍" | ||
160 | + }, | ||
161 | + { | ||
162 | + "option": "B. 视频广告" | ||
163 | + }, | ||
164 | + { | ||
165 | + "option": "C.平面广告" | ||
166 | + }, | ||
167 | + { | ||
168 | + "option": "D.线下活动" | ||
169 | + }, | ||
170 | + { | ||
171 | + "addon": 1, | ||
172 | + "option": "E.其他渠道" | ||
173 | + } | ||
174 | + ], | ||
175 | + "questionIndex": 1, | ||
176 | + "questionTitle": "您通过什么渠道知道有货的呢", | ||
177 | + "questionType": 2 | ||
178 | + }, | ||
179 | + { | ||
180 | + "fillBlankNum": 3, | ||
181 | + "questionIndex": 2, | ||
182 | + "questionTitle": "YOHO!的代言人是", | ||
183 | + "questionType": 3 | ||
184 | + } | ||
185 | + ], | ||
186 | + "share": { | ||
187 | + "imgUrl": "http://cdn.yoho.cn/yohobuy-node/assets/img/layout/qr-weixin.png", | ||
188 | + "subtitle": "YOHO!品牌大调查", | ||
189 | + "title": "YOHO!品牌大调查" | ||
190 | + }, | ||
191 | + "title": "YOHO!品牌大调查" | ||
192 | + }, | ||
193 | + "message": "success" | ||
194 | +} | ||
195 | + | ||
101 | ``` | 196 | ``` |
102 | 197 | ||
103 | ### 4、提交问卷(FrontQuestionnaireController/submit4Questionnaire.do) | 198 | ### 4、提交问卷(FrontQuestionnaireController/submit4Questionnaire.do) |
-
Please register or login to post a comment