项目管理
<p><strong>简要描述:</strong></p>
<ul>
<li>条件查询接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project/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>enable</td>
<td>否</td>
<td>int</td>
<td></td>
<td>项目状态 1:启用,2:禁用</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;acd&quot;: &quot;&quot;,
&quot;admin_id&quot;: 1,
&quot;crm_id&quot;: 1,
&quot;crm_timeout&quot;: 2,
&quot;enable&quot;: true,
&quot;expand&quot;: &quot;&quot;,
&quot;gateway_id&quot;: 1,
&quot;greeting_digits&quot;: &quot;&quot;,
&quot;greeting_file&quot;: &quot;&quot;,
&quot;id&quot;: 1,
&quot;msg&quot;: -1,
&quot;msg_content&quot;: &quot;&quot;,
&quot;name&quot;: &quot;test&quot;,
&quot;originate_timeout&quot;: 60,
&quot;outbound_type&quot;: 3,
&quot;parameter&quot;: 100.0000,
&quot;play_extno&quot;: false,
&quot;prompt_recording&quot;: false,
&quot;waiting&quot;: &quot;{timeout=30000}waiting.wav&quot;,
&quot;waiting_file&quot;: &quot;waiting.wav&quot;,
&quot;waiting_timeout&quot;: 30,
&quot;agents&quot;: [],
&quot;gatewayName&quot;: &quot;10086&quot;,
&quot;crmName&quot;: &quot;test&quot;
}],
&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>admin_id</td>
<td>int</td>
<td>用户编号</td>
</tr>
<tr>
<td>crm_id</td>
<td>int</td>
<td>crm编号</td>
</tr>
<tr>
<td>crmName</td>
<td>string</td>
<td>crm名称</td>
</tr>
<tr>
<td>crm_timeout</td>
<td>int</td>
<td>CRM超时(秒)</td>
</tr>
<tr>
<td>enable</td>
<td>boolean</td>
<td>是否启用</td>
</tr>
<tr>
<td>gateway_id</td>
<td>int</td>
<td>中继编号</td>
</tr>
<tr>
<td>gatewayName</td>
<td>string</td>
<td>中继名称</td>
</tr>
<tr>
<td>parameter</td>
<td>string</td>
<td>参数</td>
</tr>
<tr>
<td>outbound_type</td>
<td>string</td>
<td>外呼类型,1 预测;3 自动;4 点击;2 比例外呼</td>
</tr>
<tr>
<td>acd</td>
<td>string</td>
<td>ACD</td>
</tr>
<tr>
<td>greeting_digits</td>
<td>string</td>
<td>功能键</td>
</tr>
<tr>
<td>greeting_file</td>
<td>string</td>
<td>欢迎语</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>短信,-1 不发送;0 全部发送;>0 接听多少秒发送</td>
</tr>
<tr>
<td>msg_content</td>
<td>string</td>
<td>短信内容</td>
</tr>
<tr>
<td>originate_timeout</td>
<td>int</td>
<td>呼叫超时(秒)</td>
</tr>
<tr>
<td>play_extno</td>
<td>boolean</td>
<td>播报工号,true,false</td>
</tr>
<tr>
<td>prompt_recording</td>
<td>boolean</td>
<td>提示录音,true,false</td>
</tr>
<tr>
<td>waiting</td>
<td>string</td>
<td>排队规则</td>
</tr>
<tr>
<td>waiting_file</td>
<td>string</td>
<td>排队语音</td>
</tr>
<tr>
<td>agents</td>
<td>string</td>
<td>坐席</td>
</tr>
</tbody>
</table>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 增加接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project/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>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>项目名称</td>
</tr>
<tr>
<td>greeting_file</td>
<td>是</td>
<td>String</td>
<td></td>
<td>欢迎语</td>
</tr>
<tr>
<td>greeting_digits</td>
<td>是</td>
<td>String</td>
<td></td>
<td>功能键</td>
</tr>
<tr>
<td>outbound_type</td>
<td>是</td>
<td>string</td>
<td></td>
<td>外呼类型 , 1 预测;3 自动;4 点击;2 比例外呼</td>
</tr>
<tr>
<td>parameter</td>
<td>是</td>
<td>string</td>
<td></td>
<td>参数</td>
</tr>
<tr>
<td>crm_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>crm编号</td>
</tr>
<tr>
<td>crm_timeout</td>
<td>是</td>
<td>int</td>
<td></td>
<td>CRM超时(秒)</td>
</tr>
<tr>
<td>gateway_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>外呼号码(中继编号)</td>
</tr>
<tr>
<td>agent_id</td>
<td>是</td>
<td>string</td>
<td>例如:1,2,3</td>
<td>坐席</td>
</tr>
<tr>
<td>waiting_timeout</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 :增加的项目id;
}</code></pre>
<hr />
<h3><strong>简要描述:</strong></h3>
<h1>- 修改接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project/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>name</td>
<td>是</td>
<td>string</td>
<td></td>
<td>项目名称</td>
</tr>
<tr>
<td>greeting_file</td>
<td>是</td>
<td>String</td>
<td></td>
<td>欢迎语</td>
</tr>
<tr>
<td>greeting_digits</td>
<td>是</td>
<td>String</td>
<td></td>
<td>功能键</td>
</tr>
<tr>
<td>outbound_type</td>
<td>是</td>
<td>string</td>
<td></td>
<td>外呼类型 , 1 预测;3 自动;4 点击;2 比例外呼</td>
</tr>
<tr>
<td>parameter</td>
<td>是</td>
<td>string</td>
<td></td>
<td>参数</td>
</tr>
<tr>
<td>crm_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>crm编号</td>
</tr>
<tr>
<td>crm_timeout</td>
<td>是</td>
<td>int</td>
<td></td>
<td>CRM超时(秒)</td>
</tr>
<tr>
<td>gateway_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>外呼号码(中继编号)</td>
</tr>
<tr>
<td>agent_id</td>
<td>是</td>
<td>string</td>
<td>例如:1,2,3</td>
<td>坐席</td>
</tr>
<tr>
<td>waiting_timeout</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/enable</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>ids</td>
<td>是</td>
<td>string</td>
<td>{1,2,3}</td>
<td>项目编号</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>boolean</td>
<td></td>
<td>状态 ,启用:true,禁用:false</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/agent/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "success",
"code": 0,
"data": [{
"key": 1,
"value": "1001(1001)-default"
}, {
"key": 2,
"value": "1002(1002)-default"
}]
}</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",
"passwd": null,
"realm": null,
"register": null,
"caller_id_in_from": false,
"cycle": 0,
"rate": null,
"codec": null,
"dtmf_type": null,
"admin_id": 0
}]
}</p>
</li>
<li>
<ul>
<li>*</li>
</ul>
</li>
</ul>
<h3><strong>简要描述:</strong></h3>
<h1>-crm下拉列表接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/crm/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",
"stamp": "2021-08-26 19:44:40",
"issue": true,
"inspections": "[\"未质检\", \"质检合格\", \"质检不合格\"]",
"admin_id": 1,
"status": 1
}]
}</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/audioFile/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "success",
"code": 0,
"data": [{
"id": 3,
"name": "核桃编程18秒前置",
"file_name": "10_1628500125642.wav", //添加,修改时,greeting_file参数值
"description": "",
"stamp": "2021-08-09 17:08:45",
"status": 1,
"admin_id": 10
}]
}</p>
</li>
</ul>
<h3><strong>简要描述:</strong></h3>
<h1>-验证项目名称是否可用,添加时</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/project/exist</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>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<p>复制 <code>{ &quot;msg&quot;: &quot;success&quot;, &quot;code&quot;: 0, &quot;data&quot;: true 或 false }</code></p>