呼入路由
<h3><strong>简要描述:</strong></h3>
<h1>- 条件查询接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/inbound/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>gateway_id</td>
<td>否</td>
<td>int</td>
<td></td>
<td>中继编号</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>string</td>
<td></td>
<td>任务名称</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;id&quot;: 1,
&quot;name&quot;: &quot;测试830&quot;,
&quot;gateway_id&quot;: 1,
&quot;gateway_name&quot;: &quot;10086&quot;,
&quot;project_id&quot;: 1,
&quot;city_code&quot;: &quot;&quot;,
&quot;days&quot;: &quot;[0, 1, 2, 3, 4, 5, 6]&quot;,
&quot;start_time&quot;: &quot;00:00:00&quot;,
&quot;end_time&quot;: &quot;23:59:59&quot;,
&quot;action&quot;: &quot;{\&quot;type\&quot;: \&quot;project\&quot;, \&quot;value\&quot;: \&quot;1\&quot;}&quot;,
&quot;admin_id&quot;: 1
}],
&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>gateway_id</td>
<td>int</td>
<td>外呼号码编号</td>
</tr>
<tr>
<td>gateway_name</td>
<td>string</td>
<td>外呼号码名称</td>
</tr>
<tr>
<td>project_id</td>
<td>datetime</td>
<td>项目编号</td>
</tr>
<tr>
<td>city_code</td>
<td>int</td>
<td>区号</td>
</tr>
<tr>
<td>days</td>
<td>int</td>
<td>工作日</td>
</tr>
<tr>
<td>start_time</td>
<td>int</td>
<td>工作时间</td>
</tr>
<tr>
<td>end_time</td>
<td>int</td>
<td>工作时间</td>
</tr>
<tr>
<td>action</td>
<td>int</td>
<td>路由指向</td>
</tr>
<tr>
<td>admin_id</td>
<td>int</td>
<td>所属用户编号</td>
</tr>
</tbody>
</table>
<h3><strong>简要描述:</strong></h3>
<h1>- 新建路由接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/inbound/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>int</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>名称</td>
</tr>
<tr>
<td>gateway_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>呼入号码</td>
</tr>
<tr>
<td>city_code</td>
<td>是</td>
<td>string</td>
<td></td>
<td>区号</td>
</tr>
<tr>
<td>days</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作日</td>
</tr>
<tr>
<td>start_time</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作起始时间,时分秒</td>
</tr>
<tr>
<td>end_time</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作结束时间,时分秒</td>
</tr>
<tr>
<td>action</td>
<td>是</td>
<td>string</td>
<td></td>
<td>路由指向: {“type”:”project”,”value”:”1”},type值定义:项目时为project,IVR时为ivr,坐席时为agent</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/inbound/edit</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>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>名称</td>
</tr>
<tr>
<td>gateway_id</td>
<td>是</td>
<td>string</td>
<td></td>
<td>呼入号码</td>
</tr>
<tr>
<td>city_code</td>
<td>是</td>
<td>string</td>
<td></td>
<td>区号</td>
</tr>
<tr>
<td>days</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作日</td>
</tr>
<tr>
<td>start_time</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作起始时间,时分秒</td>
</tr>
<tr>
<td>end_time</td>
<td>是</td>
<td>string</td>
<td></td>
<td>工作结束时间,时分秒</td>
</tr>
<tr>
<td>action</td>
<td>是</td>
<td>string</td>
<td></td>
<td>路由指向: {“type”:”project”,”value”:”1”},type值定义:项目时为project,IVR时为ivr,坐席时为agent</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/inbound/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/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "success",
"code": 0,
"data": [{
"id": 1, //项目编号
"name": "test", //项目名称
}]
}</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/gateways</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "success",
"code": 0,
"data": [{
"id": 1,
"username": "10086"
}]
}</p>
</li>
<li>
<ul>
<li>*</li>
</ul>
</li>
</ul>
<h3><strong>简要描述:</strong></h3>
<h1>- 获取IVR接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/ivr/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "success",
"code": 0,
"data": [{
"id": 1,
"username": "10086"
}]
}</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/agent/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
</li>
</ul>
<p>复制 <code>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;key&quot;: 1, &quot;value&quot;: &quot;1001(1001)-default&quot; }, { &quot;key&quot;: 2, &quot;value&quot;: &quot;1002(1002)-default&quot; }] }</code></p>