|
|
### 1、问卷列表(FrontQuestionnaireController.getList.do)
|
|
|
|
|
|
#### 请求参数
|
|
|
| Param Name | Param Type | Required | Param Value | Desc |
|
|
|
| :-- | --: | --: | --: | --: |
|
|
|
| 无 | 无 | 无 | 无| 无|
|
|
|
|
|
|
#### 响应内容
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success",
|
|
|
"data": {
|
|
|
"total": 1,
|
|
|
"currentPage": 1,
|
|
|
"pageSize": 10,
|
|
|
"totalPage": 1,
|
|
|
"rows": [
|
|
|
{
|
|
|
//问卷标识
|
|
|
"id": 2,
|
|
|
//问卷标题
|
|
|
"title": "YOHO!品牌大调查",
|
|
|
//收集状态 1--未发布,2--已发布
|
|
|
"status": ,
|
|
|
//收集数据
|
|
|
"num": 12,
|
|
|
//问卷开始时间
|
|
|
"startTime": ,
|
|
|
//问卷结束时间
|
|
|
"endTime": ,
|
|
|
//问卷修改时间
|
|
|
"modifyTime":,
|
|
|
//问卷链接
|
|
|
"link": "http://www.yohobuy.com/questionnaire/2"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"currentPage": 1,
|
|
|
"pageSize": 10,
|
|
|
"rows": [
|
|
|
{
|
|
|
"endTime": 1490336931,
|
|
|
"id": 2,
|
|
|
"link": "http://www.yohobuy.com/questionnaire/2",
|
|
|
"modifyTime": 1490338408,
|
|
|
"num": 1,
|
|
|
"startTime": 1488868129,
|
|
|
"status": 2,
|
|
|
"title": "YOHO!品牌大调查"
|
|
|
}
|
|
|
],
|
|
|
"total": 1,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"message": "success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### 2、获取问卷(FrontQuestionnaireController.getById.do)
|
|
|
|
|
|
#### 请求参数
|
|
|
| Param Name | Param Type | Required | Param Value | Desc |
|
|
|
| :-- | --: | --: | --: | --: |
|
|
|
| id | int | true |1| |问卷标识|
|
|
|
#### 响应内容
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "问卷列表",
|
|
|
"data": {
|
|
|
//问卷标题
|
|
|
"name": "",
|
|
|
//问题
|
|
|
"questions": [
|
|
|
{
|
|
|
//问卷中每个问题的索引,按照先后顺序,从0开始 (题号) 后台生成
|
|
|
"questionIndex":
|
|
|
// 问题(题目)类型: 1--单选题,2--多选题,3--填空题
|
|
|
"questionType": "",
|
|
|
// 问题标题(题目)
|
|
|
"questionTitle": "",
|
|
|
// 选择题问题内容
|
|
|
"questionContents":[
|
|
|
{
|
|
|
"option":"选项1",
|
|
|
//带文字补充
|
|
|
"addon":1
|
|
|
}
|
|
|
{
|
|
|
"option":"选项2"
|
|
|
}
|
|
|
]
|
|
|
// 填空题数目
|
|
|
fillBlankNum:3
|
|
|
}
|
|
|
],
|
|
|
//分享设置
|
|
|
"share":{
|
|
|
//分享设置图片地址
|
|
|
"imgUrl": " ",
|
|
|
//分享设置标题
|
|
|
"title": "",
|
|
|
//分享设置副标题
|
|
|
"subtitle": " "
|
|
|
}
|
|
|
//问卷开始时间
|
|
|
"startTimeStr":"",
|
|
|
//问卷结束时间
|
|
|
"endTimeStr":""
|
|
|
},
|
|
|
"md5": "6fa464cf72538ad2c25fa24d20dcdd20"
|
|
|
}
|
|
|
|
|
|
### 3、提交问卷(FrontQuestionnaireController.submit.do)
|
|
|
|
|
|
#### 请求参数
|
|
|
| Param Name | Param Type | Required | Param Value | Desc |
|
|
|
| :-- | --: | --: | --: | --: |
|
|
|
| id | int | true |1| |问卷标识|
|
|
|
#### 响应内容
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": 1,
|
|
|
"message": "success"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|