V1.1问卷保存与编辑(问卷管理界面)
<p><strong>简要描述:</strong> </p>
<ul>
<li>问卷保存与编辑(与以前相比,新增了一个参数,answerType)</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/xinshen/questionnaire/save_questionnaire</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST JSON</li>
</ul>
<p><strong>参数(在1.0版本 新增一个参数):</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p>请求参数</p>
<pre><code>{
"questionnaire": {
"questionnaireTitle": "分期商城测试1",
"questionnaireExplain": "分期商城测试1",
"questionnaireScene": "230"
},
"optionList": [
{
"question": {
"id": 493,
"questionTitle": "接单数量",
"questionExplain": "接单数量",
"questionType": "",
"updateDate": "2018-05-04 12:11:17",
"state": "10",
"remark": "",
"answerType":1 // 1:必答 0:非必答
},
"questionOption": [
{
"id": 573,
"questionId": 493,
"questionOptionKey": "A",
"questionOptionValue": "无",
"createDate": null,
"updateDate": null,
"state": "10"
},
{
"id": 574,
"questionId": 493,
"questionOptionKey": "B",
"questionOptionValue": "1单",
"createDate": null,
"updateDate": null,
"state": "10"
},
{
"id": 575,
"questionId": 493,
"questionOptionKey": "C",
"questionOptionValue": "2单",
"createDate": null,
"updateDate": null,
"state": "10"
},
{
"id": 576,
"questionId": 493,
"questionOptionKey": "D",
"questionOptionValue": "2单以上",
"createDate": null,
"updateDate": null,
"state": "10"
}
]
}
]
}
</code></pre>
<p><strong>返回示例</strong></p>
<pre><code></code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!:</p>