设置预设模板开放范围
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>添加开放范围</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://cloud.21tb.com/rtr/html/template/default/openScope/set</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<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>
<tr>
<td style="text-align: left;">templateId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>模板ID</td>
</tr>
<tr>
<td style="text-align: left;">include</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">boolean</td>
<td>是否包含 全部客户该值为:false,表示开放范围为排除 openCorpCodeList 的其他的公司 ; 指定客户 该值为true,且openCorpCodeList必传,表示开放范围为corpCodeList 的公司 ;</td>
</tr>
<tr>
<td style="text-align: left;">corpCodeList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">list</td>
<td>开放的公司list</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
&quot;templateId&quot;:&quot;b26023d871b0492b92a8b2e3e7a68d0c&quot;,
&quot;include&quot;:false,
&quot;corpCodeList&quot;:[&quot;jinj&quot;,&quot;shyf17&quot;]
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;msg&quot;: &quot;操作处理成功&quot;,
&quot;code&quot;: 1001,
&quot;verifyCode&quot;: null,
&quot;bizResult&quot;: true,
&quot;traceId&quot;: &quot;58d5a7975d10415aaf88d6c756a7dde5&quot;,
&quot;errorMsg&quot;: null
}
{
&quot;msg&quot;: &quot;设置的开放范围公司code:jinj111212不存在!&quot;,
&quot;code&quot;: 400,
&quot;verifyCode&quot;: null,
&quot;bizResult&quot;: null,
&quot;traceId&quot;: &quot;2c8d0e0ea8ea4b9288ac8b4ff6ce0e8f&quot;,
&quot;errorMsg&quot;: null
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>1001 成功</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>失败信息</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>每次设置会将之前设置的数据清除,重新设置</li>
</ul>