Update questionnaire_front.crm
Showing
1 changed file
with
133 additions
and
0 deletions
1 | +### 1、问卷列表(FrontQuestionnaireController.getList.do) | ||
2 | + | ||
3 | +#### 请求参数 | ||
4 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
5 | +| :-- | --: | --: | --: | --: | | ||
6 | +| 无 | 无 | 无 | 无| 无| | ||
7 | + | ||
8 | +#### 响应内容 | ||
9 | +```json | ||
10 | +{ | ||
11 | + "code": 200, | ||
12 | + "message": "success", | ||
13 | + "data": { | ||
14 | + "total": 1, | ||
15 | + "currentPage": 1, | ||
16 | + "pageSize": 10, | ||
17 | + "totalPage": 1, | ||
18 | + "rows": [ | ||
19 | + { | ||
20 | + //问卷标识 | ||
21 | + "id": 2, | ||
22 | + //问卷标题 | ||
23 | + "title": "YOHO!品牌大调查", | ||
24 | + //收集状态 1--未发布,2--已发布 | ||
25 | + "status": , | ||
26 | + //收集数据 | ||
27 | + "num": 12, | ||
28 | + //问卷开始时间 | ||
29 | + "startTime": , | ||
30 | + //问卷结束时间 | ||
31 | + "endTime": , | ||
32 | + //问卷修改时间 | ||
33 | + "modifyTime":, | ||
34 | + //问卷链接 | ||
35 | + "link": "http://www.yohobuy.com/questionnaire/2" | ||
36 | + } | ||
37 | + ] | ||
38 | + } | ||
39 | +} | ||
40 | + | ||
41 | +{ | ||
42 | + "code": 200, | ||
43 | + "data": { | ||
44 | + "currentPage": 1, | ||
45 | + "pageSize": 10, | ||
46 | + "rows": [ | ||
47 | + { | ||
48 | + "endTime": 1490336931, | ||
49 | + "id": 2, | ||
50 | + "link": "http://www.yohobuy.com/questionnaire/2", | ||
51 | + "modifyTime": 1490338408, | ||
52 | + "num": 1, | ||
53 | + "startTime": 1488868129, | ||
54 | + "status": 2, | ||
55 | + "title": "YOHO!品牌大调查" | ||
56 | + } | ||
57 | + ], | ||
58 | + "total": 1, | ||
59 | + "totalPage": 1 | ||
60 | + }, | ||
61 | + "message": "success" | ||
62 | +} | ||
63 | +``` | ||
64 | + | ||
65 | +### 2、获取问卷(FrontQuestionnaireController.getById.do) | ||
66 | + | ||
67 | +#### 请求参数 | ||
68 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
69 | +| :-- | --: | --: | --: | --: | | ||
70 | +| id | int | true |1| |问卷标识| | ||
71 | +#### 响应内容 | ||
72 | +```json | ||
73 | +{ | ||
74 | + "code": 200, | ||
75 | + "message": "问卷列表", | ||
76 | + "data": { | ||
77 | + //问卷标题 | ||
78 | + "name": "", | ||
79 | + //问题 | ||
80 | + "questions": [ | ||
81 | + { | ||
82 | + //问卷中每个问题的索引,按照先后顺序,从0开始 (题号) 后台生成 | ||
83 | + "questionIndex": | ||
84 | + // 问题(题目)类型: 1--单选题,2--多选题,3--填空题 | ||
85 | + "questionType": "", | ||
86 | + // 问题标题(题目) | ||
87 | + "questionTitle": "", | ||
88 | + // 选择题问题内容 | ||
89 | + "questionContents":[ | ||
90 | + { | ||
91 | + "option":"选项1", | ||
92 | + //带文字补充 | ||
93 | + "addon":1 | ||
94 | + } | ||
95 | + { | ||
96 | + "option":"选项2" | ||
97 | + } | ||
98 | + ] | ||
99 | + // 填空题数目 | ||
100 | + fillBlankNum:3 | ||
101 | + } | ||
102 | + ], | ||
103 | + //分享设置 | ||
104 | + "share":{ | ||
105 | + //分享设置图片地址 | ||
106 | + "imgUrl": " ", | ||
107 | + //分享设置标题 | ||
108 | + "title": "", | ||
109 | + //分享设置副标题 | ||
110 | + "subtitle": " " | ||
111 | + } | ||
112 | + //问卷开始时间 | ||
113 | + "startTimeStr":"", | ||
114 | + //问卷结束时间 | ||
115 | + "endTimeStr":"" | ||
116 | + }, | ||
117 | + "md5": "6fa464cf72538ad2c25fa24d20dcdd20" | ||
118 | +} | ||
119 | + | ||
120 | +### 3、提交问卷(FrontQuestionnaireController.submit.do) | ||
121 | + | ||
122 | +#### 请求参数 | ||
123 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
124 | +| :-- | --: | --: | --: | --: | | ||
125 | +| id | int | true |1| |问卷标识| | ||
126 | +#### 响应内容 | ||
127 | +```json | ||
128 | +{ | ||
129 | + "code": 200, | ||
130 | + "data": 1, | ||
131 | + "message": "success" | ||
132 | +} | ||
133 | +``` |
-
Please register or login to post a comment