外呼任务
<h3><strong>简要描述:</strong></h3>
<h1>- 条件查询接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/grid</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号,默认值:0</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>任务名称</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>string</td>
<td></td>
<td>状态,默认-1,0:已停止,1:执行中</td>
</tr>
<tr>
<td>page</td>
<td>是</td>
<td>int</td>
<td>1</td>
<td>起始页</td>
</tr>
<tr>
<td>limit</td>
<td>是</td>
<td>int</td>
<td>10</td>
<td>显示条数</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;create_stamp&quot;: &quot;2021-08-21 12:02:36&quot;,
&quot;id&quot;: 5,
&quot;name&quot;: &quot;test05&quot;,
&quot;project_id&quot;: 1,
&quot;status&quot;: 0,
&quot;projectName&quot;: &quot;test&quot;,
&quot;outboundType&quot;: 3,
&quot;noCalls&quot;: 0,
&quot;total&quot;: 0
}],
&quot;count&quot;: 1
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>任务编号</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>任务名称</td>
</tr>
<tr>
<td>outbound_type</td>
<td>int</td>
<td>外呼类型</td>
</tr>
<tr>
<td>project_name</td>
<td>string</td>
<td>项目名称</td>
</tr>
<tr>
<td>create_stamp</td>
<td>datetime</td>
<td>创建时间</td>
</tr>
<tr>
<td>noCalls</td>
<td>int</td>
<td>未呼数(条)</td>
</tr>
<tr>
<td>total</td>
<td>int</td>
<td>任务总数据条数</td>
</tr>
<tr>
<td>project_id</td>
<td>int</td>
<td>项目编号)</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>执行状态: 0 停止; 1 执行</td>
</tr>
</tbody>
</table>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 删除接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/remove</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>ids</td>
<td>是</td>
<td>string</td>
<td>任务编号,多个用逗号分割</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 新建任务接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/add</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>string</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>任务名称</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1 :新建成功的任务id
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 执行 | 停止 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/editStatus</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>任务编号</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>int</td>
<td></td>
<td>状态 : 0 停止; 1 执行</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 导入数据接口</h1>
<h3>注意<strong>:</strong></h3>
<h4>##### 导入前请先下载当前项目的csv模板</h4>
<p>**请求URL:</p>
<ul>
<li><code>http://../admin/project_task/import</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>任务编号</td>
</tr>
<tr>
<td>file</td>
<td>是</td>
<td>file文件</td>
<td></td>
<td>csv文件</td>
</tr>
<tr>
<td>import_filter</td>
<td>是</td>
<td>int</td>
<td></td>
<td>过滤重复号码: 0 禁用; 1 启用</td>
</tr>
<tr>
<td>import_order</td>
<td>是</td>
<td>int</td>
<td></td>
<td>乱序导入: 0 禁用; 1 启用</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 下载数据模板</h1>
<p><strong>请求url:</strong></p>
<ul>
<li><code>http://../task/template?project_id=''&amp;access_token=''</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>get</p>
</li>
<li>
<ul>
<li>*</li>
</ul>
</li>
</ul>
<h3><strong>简要描述:</strong></h3>
<h1>- 快速导入接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/quick_import</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
<li>接口测试选择: x-www-form-urlencoded<br />
<strong>参数:</strong></li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>任务编号</td>
</tr>
<tr>
<td>tels</td>
<td>是</td>
<td>string</td>
<td></td>
<td>号码:多号码同时导入,上限五万条,一个号码占一行,回车换行</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 回收未呼数据接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/recovery</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>任务编号</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 清空未呼数据接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project_task/clear</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>task_id</td>
<td>是</td>
<td>string</td>
<td></td>
<td>任务编号</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<p>复制 <code>{ &quot;code&quot;: 0, &quot;msg&quot;: &quot;&quot;, &quot;data&quot;: 1 }</code></p>