ivr
<h3><strong>简要描述:</strong></h3>
<h1>- 条件查询接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/ivr/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>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;11111&quot;,
&quot;tries&quot;: 1,
&quot;file&quot;: &quot;&quot;,
&quot;invalid_file&quot;: &quot;&quot;,
&quot;actions&quot;: &quot;[{\&quot;type\&quot;: \&quot;ivr\&quot;, \&quot;value\&quot;: \&quot;1\&quot;, \&quot;digits\&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>tries</td>
<td>int</td>
<td>播放次数</td>
</tr>
<tr>
<td>file</td>
<td>int</td>
<td>语音</td>
</tr>
<tr>
<td>invalid_file</td>
<td>int</td>
<td>提示语音</td>
</tr>
<tr>
<td>action</td>
<td>json字符串</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/ivr/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>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>tries</td>
<td>否</td>
<td>int</td>
<td>播放次数</td>
</tr>
<tr>
<td>file</td>
<td>否</td>
<td>int</td>
<td>语音</td>
</tr>
<tr>
<td>invalid_file</td>
<td>否</td>
<td>int</td>
<td>提示语音</td>
</tr>
<tr>
<td>action</td>
<td>是</td>
<td>string</td>
<td>类型: [{“type”:”ivr”,”value”:”1”,”digits”:”1”}],type值定义:项目时为project,IVR时为ivr,坐席时为agent,digits:按键值</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>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>int</td>
<td>编号</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>string</td>
<td>名称</td>
</tr>
<tr>
<td>tries</td>
<td>否</td>
<td>int</td>
<td>播放次数</td>
</tr>
<tr>
<td>file</td>
<td>否</td>
<td>int</td>
<td>语音</td>
</tr>
<tr>
<td>invalid_file</td>
<td>否</td>
<td>int</td>
<td>提示语音</td>
</tr>
<tr>
<td>action</td>
<td>是</td>
<td>string</td>
<td>类型: [{“type”:”ivr”,”value”:”1”,”digits”:”1”}],type值定义:项目时为project,IVR时为ivr,坐席时为agent,digits:按键值</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/ivr/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>- 获取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>
</li>
</ul>
<p>复制 <code>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: [{ &quot;id&quot;: 1, &quot;username&quot;: &quot;10086&quot; }] }</code></p>