意见征集保存
<p><strong>接口URL</strong></p>
<p>> /subassembly/su/w/v1/opinioncollection/save</p>
<p><strong>请求方式</strong>
> POST</p>
<p><strong>Content-Type</strong></p>
<p>> json</p>
<p><strong>请求Body参数</strong></p>
<pre><code class="language-javascript">{
&quot;id&quot;: &quot;&quot;,
&quot;title&quot;: &quot;意见征集标题&quot;,
&quot;introduction&quot;: &quot;征集简介&quot;,
&quot;startTime&quot;: &quot;2024-08-22 13:45:45&quot;,
&quot;endTime&quot;: &quot;2024-08-30 13:45:45&quot;,
&quot;company&quot;: &quot;征集单位&quot;,
&quot;allowMassesWrited&quot;: false,
&quot;listDeputyZzdId&quot;: [
&quot;878664&quot;,
&quot;878663&quot;
],
&quot;listOrgZzdId&quot;: [
&quot;GO_e19fa698563d4fd5ae3cb31f73a25c3c&quot;,
&quot;GO_dbeb6bc2a1eb447d9cc226ff5544d993&quot;
],
&quot;topicList&quot;: [
{
&quot;id&quot;: 0,
&quot;sortIndex&quot;: 1,
&quot;type&quot;: 1,
&quot;title&quot;: &quot;满意度&quot;,
&quot;required&quot;: false,
&quot;options&quot;: &quot;A.满意\nB.基本满意\nC.不满意&quot;
},
{
&quot;id&quot;: 0,
&quot;sortIndex&quot;: 2,
&quot;type&quot;: 3,
&quot;title&quot;: &quot;1. 请您提出宝贵意见,谢谢&quot;,
&quot;required&quot;: false,
&quot;options&quot;: &quot;&quot;
},
{
&quot;id&quot;: 0,
&quot;sortIndex&quot;: 3,
&quot;options&quot;: &quot;A.修建公园\nB.改造停车场\nC.修建体育馆\nD.市民活动中心&quot;,
&quot;type&quot;: 2,
&quot;title&quot;: &quot;推荐项目&quot;,
&quot;required&quot;: false
},
{
&quot;id&quot;: 0,
&quot;sortIndex&quot;: 4,
&quot;options&quot;: &quot;满意度[0,10]\n处理速度[0,5]&quot;,
&quot;type&quot;: 4,
&quot;title&quot;: &quot;请给项目打分&quot;,
&quot;required&quot;: false
}
]
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>id,新增时传“”</td>
</tr>
<tr>
<td>title</td>
<td>意见征集标题</td>
<td>String</td>
<td>是</td>
<td>征集标题</td>
</tr>
<tr>
<td>introduction</td>
<td>征集简介</td>
<td>String</td>
<td>是</td>
<td>征集简介</td>
</tr>
<tr>
<td>startTime</td>
<td>2024-08-22 13:45:45</td>
<td>String</td>
<td>是</td>
<td>征集开始期限(格式:yyyy-MM-dd HH:mm:ss)</td>
</tr>
<tr>
<td>endTime</td>
<td>2024-08-30 13:45:45</td>
<td>String</td>
<td>是</td>
<td>征集结束期限(格式:yyyy-MM-dd HH:mm:ss)</td>
</tr>
<tr>
<td>company</td>
<td>征集单位</td>
<td>String</td>
<td>是</td>
<td>征集单位</td>
</tr>
<tr>
<td>allowMassesWrited</td>
<td>false</td>
<td>Boolean</td>
<td>是</td>
<td>向群众征集 true:允许群众填写 false:不允许</td>
</tr>
<tr>
<td>listDeputyZzdId</td>
<td>-</td>
<td>Array</td>
<td>是</td>
<td>征集对象(人大代表)浙政钉id</td>
</tr>
<tr>
<td>listOrgZzdId</td>
<td>-</td>
<td>Array</td>
<td>是</td>
<td>征集对象(组织/部门)组织编码</td>
</tr>
<tr>
<td>topicList</td>
<td>-</td>
<td>Array</td>
<td>是</td>
<td>征集选项</td>
</tr>
<tr>
<td>topicList.id</td>
<td>0</td>
<td>Number</td>
<td>是</td>
<td>id,新增时传0</td>
</tr>
<tr>
<td>topicList.sortIndex</td>
<td>1</td>
<td>Number</td>
<td>是</td>
<td>顺序号</td>
</tr>
<tr>
<td>topicList.type</td>
<td>1</td>
<td>Number</td>
<td>是</td>
<td>问题类型(1:单选,2:多选,3:问答,4:打分)</td>
</tr>
<tr>
<td>topicList.title</td>
<td>满意度</td>
<td>String</td>
<td>是</td>
<td>问题标题</td>
</tr>
<tr>
<td>topicList.required</td>
<td>false</td>
<td>Boolean</td>
<td>是</td>
<td>是否必填</td>
</tr>
<tr>
<td>topicList.options</td>
<td>A.满意B.基本满意C.不满意</td>
<td>String</td>
<td>是</td>
<td>选项(\n分割多个选项)类型为打分时,每行一个选项,选项内容[最低分,最高分]</td>
</tr>
</tbody>
</table>
<p><strong>响应示例</strong></p>
<ul>
<li>成功(200)</li>
</ul>
<pre><code class="language-javascript">{
&quot;code&quot;: 1200,
&quot;data&quot;: true,
&quot;desc&quot;: &quot;操作成功&quot;,
&quot;ex&quot;: null,
&quot;refreshPermission&quot;: false
}</code></pre>
<ul>
<li>失败(200)</li>
</ul>
<pre><code class="language-javascript"></code></pre>