消息批量新增接口
<pre><code class="language-text">暂无描述</code></pre>
<p><strong>接口状态</strong></p>
<p>> 开发中</p>
<p><strong>接口URL</strong></p>
<p>> /subassembly/su/w/v1/msg/add</p>
<p><strong>请求方式</strong></p>
<p>> POST</p>
<p><strong>Content-Type</strong></p>
<p>> json</p>
<p><strong>请求Header参数</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>x-tenant-code</td>
<td>hongzhengkeji</td>
<td>String</td>
<td>是</td>
<td>租户code</td>
</tr>
<tr>
<td>Content-Type</td>
<td>application/json</td>
<td>String</td>
<td>是</td>
<td>内容类型</td>
</tr>
<tr>
<td>x-request-id</td>
<td>ce0e40a9-2df7-4f16-861f-a7946127f30a</td>
<td>String</td>
<td>是</td>
<td>请求唯一ID</td>
</tr>
<tr>
<td>x-timestamp</td>
<td>1724990364948</td>
<td>String</td>
<td>是</td>
<td>时间戳</td>
</tr>
<tr>
<td>x-auth</td>
<td>iP3pViWOBOAQA5hdylDDdj</td>
<td>String</td>
<td>是</td>
<td>签名</td>
</tr>
</tbody>
</table>
<p><strong>请求Body参数</strong></p>
<pre><code class="language-javascript">[
{
&quot;msgTitle&quot;: &quot;111&quot;,
&quot;msgContent&quot;: &quot;1111&quot;,
&quot;publishTimeStr&quot;: &quot;2024-09-09 16:32:52&quot;,
&quot;publisherName&quot;: &quot;wwww&quot;,
&quot;skipUrlWeb&quot;: &quot;www&quot;,
&quot;skipUrlMobile&quot;: &quot;wwww&quot;,
&quot;personnel&quot;: &quot;429547&quot;,
&quot;uniqueId&quot;: &quot;1234567&quot;
},
{
&quot;msgTitle&quot;: &quot;222&quot;,
&quot;msgContent&quot;: &quot;222222&quot;,
&quot;publishTimeStr&quot;: &quot;2024-09-10 16:32:52&quot;,
&quot;publisherName&quot;: &quot;wwww&quot;,
&quot;skipUrlWeb&quot;: &quot;www&quot;,
&quot;skipUrlMobile&quot;: &quot;wwww&quot;,
&quot;personnel&quot;: &quot;429547&quot;,
&quot;uniqueId&quot;: &quot;1234568&quot;
}
]</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>-</td>
<td>Array</td>
<td>否</td>
<td>-</td>
</tr>
<tr>
<td>0.msgTitle</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>通知标题</td>
</tr>
<tr>
<td>0.msgContent</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>通知内容</td>
</tr>
<tr>
<td>0.publishTimeStr</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>发布时间(yyyy-MM-dd HH:mm:ss)</td>
</tr>
<tr>
<td>0.publisherName</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>发布者</td>
</tr>
<tr>
<td>0.skipUrlWeb</td>
<td>-</td>
<td>String</td>
<td>否</td>
<td>web跳转url</td>
</tr>
<tr>
<td>0.skipUrlMobile</td>
<td>-</td>
<td>String</td>
<td>否</td>
<td>mobile跳转url</td>
</tr>
<tr>
<td>0.personnel</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>用户(浙政钉id)</td>
</tr>
<tr>
<td>0.uniqueId</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>唯一id</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;: [
{
&quot;id&quot;: &quot;589064294932549&quot;,
&quot;uniqueId&quot;: &quot;1234577&quot;
},
{
&quot;id&quot;: &quot;589064296157253&quot;,
&quot;uniqueId&quot;: &quot;1234569&quot;
}
],
&quot;desc&quot;: &quot;操作成功&quot;,
&quot;ex&quot;: null,
&quot;refreshPermission&quot;: false
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>SUCCESS</td>
<td>String</td>
<td>SUCCESS UNAUTHORIZED FileService_UNAUTHORIZED FORBIDDEN SYSTEM_ERROR GATEWAY_ERROR CUSTOM_ERROR WARNING PERMISSION_ERROR ACTIVATION_ERROR</td>
</tr>
<tr>
<td>data</td>
<td>-</td>
<td>Array</td>
<td>-</td>
</tr>
<tr>
<td>data.id</td>
<td>-</td>
<td>String</td>
<td>消息主键ID</td>
</tr>
<tr>
<td>data.uniqueId</td>
<td>-</td>
<td>String</td>
<td>唯一id</td>
</tr>
<tr>
<td>desc</td>
<td>-</td>
<td>String</td>
<td>-</td>
</tr>
<tr>
<td>ex</td>
<td>-</td>
<td>String</td>
<td>-</td>
</tr>
<tr>
<td>refreshPermission</td>
<td>true</td>
<td>Boolean</td>
<td>-</td>
</tr>
</tbody>
</table>
<ul>
<li>失败(404)</li>
</ul>
<pre><code class="language-javascript">{
&quot;code&quot;: 1601,
&quot;data&quot;: null,
&quot;desc&quot;: &quot;唯一ID:1234577已存在,请检查数据&quot;,
&quot;ex&quot;: null,
&quot;refreshPermission&quot;: false
}</code></pre>