Authored by qianjun

Update front_questionnaire.md

... ... @@ -26,6 +26,25 @@
}
}
{
"code": 200,
"data": {
"rows": [
{
"description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。",
"id": 4,
"title": "YOHO!品牌大调查"
},
{
"description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。",
"id": 2,
"title": "YOHO!品牌大调查"
}
],
"total": 2
},
"message": "success"
}
```
### 2、验证获取问卷(FrontQuestionnaireController/validateGetById4Questionnaire.do)
... ... @@ -39,14 +58,21 @@
```json
{
"code": 200,
"message": "success",
"data": {
true or false
}
"data": true,
"message": "success"
}
or
{
"code": 203,
"data": false,
"message": "问卷处于未开始状态"
}
```
#### code!=200 为非法状态
### 3、获取问卷(FrontQuestionnaireController/getById4Questionnaire.do)
#### 请求参数
... ... @@ -98,6 +124,75 @@
"md5": "6fa464cf72538ad2c25fa24d20dcdd20"
}
{
"code": 200,
"data": {
"description": "YOHO!有货,是由南京新与力文化传播有限公司开发的一款生活购物类手机软件。有iOS和android两个版本,目前,在各大应用市场均已上线。",
"id": 2,
"questions": [
{
"questionContents": [
{
"option": "A.朋友介绍"
},
{
"option": "B. 视频广告"
},
{
"option": "C.平面广告"
},
{
"option": "D.线下活动"
},
{
"addon": 1,
"option": "E.其他渠道"
}
],
"questionIndex": 0,
"questionTitle": "您通过什么渠道知道有货的呢",
"questionType": 1
},
{
"questionContents": [
{
"option": "A.朋友介绍"
},
{
"option": "B. 视频广告"
},
{
"option": "C.平面广告"
},
{
"option": "D.线下活动"
},
{
"addon": 1,
"option": "E.其他渠道"
}
],
"questionIndex": 1,
"questionTitle": "您通过什么渠道知道有货的呢",
"questionType": 2
},
{
"fillBlankNum": 3,
"questionIndex": 2,
"questionTitle": "YOHO!的代言人是",
"questionType": 3
}
],
"share": {
"imgUrl": "http://cdn.yoho.cn/yohobuy-node/assets/img/layout/qr-weixin.png",
"subtitle": "YOHO!品牌大调查",
"title": "YOHO!品牌大调查"
},
"title": "YOHO!品牌大调查"
},
"message": "success"
}
```
### 4、提交问卷(FrontQuestionnaireController/submit4Questionnaire.do)
... ...