坐席列表
<p><strong>简要描述:</strong></p>
<ul>
<li>坐席查询接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/agent/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>extno</td>
<td>否</td>
<td>string</td>
<td></td>
<td>工号</td>
</tr>
<tr>
<td>group</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;admin_id&quot;: 1,
&quot;cdr_uuid&quot;: &quot;&quot;,
&quot;end_stamp&quot;: &quot;2021-08-28 00:02:06&quot;,
&quot;extno&quot;: &quot;1001&quot;,
&quot;group&quot;: &quot;default&quot;,
&quot;hideTel&quot;: &quot;&quot;,
&quot;id&quot;: 1,
&quot;info_uuid&quot;: &quot;&quot;,
&quot;name&quot;: &quot;1001&quot;,
&quot;passwd&quot;: &quot;abc@123&quot;,
&quot;play_screen&quot;: false,
&quot;project_id&quot;: 1,
&quot;queue&quot;: false,
&quot;role&quot;: 0,
&quot;status&quot;: true,
&quot;telephone&quot;: &quot;&quot;,
&quot;time&quot;: 0,
&quot;roleName&quot;: &quot;&quot;,
&quot;projectName&quot;: &quot;test&quot;,
&quot;reg&quot;: &quot;Registrations:&lt;br/&gt;Total items returned: 0&lt;br/&gt;&quot;
}],
&quot;count&quot;: 50
}</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>passwd</td>
<td>string</td>
<td>坐席密码</td>
</tr>
<tr>
<td>admin_id</td>
<td>int</td>
<td>坐席所属用户编号</td>
</tr>
<tr>
<td>extno</td>
<td>int</td>
<td>坐席号</td>
</tr>
<tr>
<td>project_id</td>
<td>int</td>
<td>坐席所属项目编号</td>
</tr>
<tr>
<td>project_name</td>
<td>string</td>
<td>坐席所属项目名称</td>
</tr>
<tr>
<td>role</td>
<td>int</td>
<td>角色</td>
</tr>
<tr>
<td>role_name</td>
<td>string</td>
<td>角色名称</td>
</tr>
<tr>
<td>reg</td>
<td>string</td>
<td>是否注册,</td>
</tr>
<tr>
<td>queue</td>
<td>Boolean</td>
<td>排队</td>
</tr>
<tr>
<td>end_stamp</td>
<td>date</td>
<td>标记</td>
</tr>
<tr>
<td>status</td>
<td>Boolean</td>
<td>用户状态</td>
</tr>
<tr>
<td>group</td>
<td>string</td>
<td>标签组</td>
</tr>
<tr>
<td>hideTel</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/agent/batchProject</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></td>
<td>编号,多个使用逗号分割</td>
</tr>
<tr>
<td>project_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/agent/batchPass</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></td>
<td>坐席编号,多个逗号分割</td>
</tr>
<tr>
<td>passwd</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/agent/editName</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>
</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</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>role</td>
<td>是</td>
<td>int</td>
<td></td>
<td>角色编号</td>
</tr>
<tr>
<td>ids</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/agent/batchGroup</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>group</td>
<td>是</td>
<td>String</td>
<td></td>
<td>标签组名称</td>
</tr>
<tr>
<td>ids</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/role/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>POST</p>
<p><strong>返回示例</strong></p>
<p>{
"msg": "",
"code": 0,
"data": [{
"id": 1,
"name": "个人",
"permission": 4,
"allow_down": true,
"allow_inspection": true,
"hide_tel": "none",
"menus": "26,27,28,29,31,34",
"admin_id": 1
}]
}</p>
</li>
</ul>
<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>permission</td>
<td>string</td>
<td>权限类型</td>
</tr>
<tr>
<td>allow_down</td>
<td>boolean</td>
<td>是否允许下载</td>
</tr>
<tr>
<td>allow_inspection</td>
<td>boolean</td>
<td>是否允许质检</td>
</tr>
<tr>
<td>hide_tel</td>
<td>String</td>
<td>号码脱敏</td>
</tr>
<tr>
<td>menus</td>
<td>string</td>
<td>菜单id</td>
</tr>
<tr>
<td>admin_id</td>
<td>int</td>
<td>用户id</td>
</tr>
</tbody>
</table>
<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", //项目名称
"greeting_file": "",
"greeting_digits": "",
"outbound_type": 3,
"parameter": 100.0000,
"crm_id": 1,
"crm_timeout": 2,
"waiting_file": "waiting.wav",
"waiting_timeout": 30,
"gateway_id": 1,
"originate_timeout": 60,
"enable": true,
"admin_id": 1,
"prompt_recording": false,
"play_extno": false,
"acd": "",
"msg": -1,
"msg_content": "",
"expand": null,
"waiting": "{timeout=30000}waiting.wav"
}]
}</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/getGroups</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;: &quot;default&quot;, &quot;value&quot;: &quot;default&quot; }] }</code></p>