呼叫系统API


用户列表

<h3><strong>简要描述:</strong></h3> <ul> <li> <h1>查询</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/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> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;id&amp;quot;: 27, &amp;quot;name&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;passwd&amp;quot;: &amp;quot;123456@&amp;quot;, &amp;quot;company&amp;quot;: &amp;quot;1111&amp;quot;, &amp;quot;contact&amp;quot;: &amp;quot;123123&amp;quot;, &amp;quot;telephone&amp;quot;: &amp;quot;123132&amp;quot;, &amp;quot;record_format&amp;quot;: &amp;quot;${ext}_${tel}_${date}.wav&amp;quot;, &amp;quot;stored_days&amp;quot;: 30, &amp;quot;balance&amp;quot;: 100.0000, &amp;quot;record_type&amp;quot;: 3, &amp;quot;consumes&amp;quot;: 0.0000, &amp;quot;decrypt&amp;quot;: &amp;quot;none&amp;quot;, &amp;quot;expand&amp;quot;: null } ], &amp;quot;count&amp;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>passwd</td> <td>string</td> <td>密码</td> </tr> <tr> <td>balance</td> <td>int</td> <td>余额</td> </tr> <tr> <td>company</td> <td>string</td> <td>公司名称</td> </tr> <tr> <td>contact</td> <td>string</td> <td>联络人</td> </tr> <tr> <td>telephone</td> <td>string</td> <td>电话</td> </tr> <tr> <td>stored_days</td> <td>int</td> <td>数据保存天数</td> </tr> <tr> <td>record_format</td> <td>string</td> <td>录音格式</td> </tr> <tr> <td>record_type</td> <td>string</td> <td>录音类型</td> </tr> <tr> <td>decrypt</td> <td>string</td> <td>号码脱敏,none:不加密,hide:隐藏中间四位,MD5:MD5加密</td> </tr> <tr> <td>consumes</td> <td>string</td> <td>今日消费</td> </tr> <tr> <td>expand</td> <td>json</td> <td>预留字段</td> </tr> </tbody> </table> <hr /> <p>**</p> <h3>简要描述:</h3> <p>**</p> <ul> <li> <h1>添加</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/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>passwd</td> <td>是</td> <td>sting</td> <td>1</td> <td>密码</td> </tr> <tr> <td>company</td> <td>是</td> <td>sting</td> <td>10</td> <td>公司名</td> </tr> <tr> <td>contact</td> <td>是</td> <td>sting</td> <td>10</td> <td>联系人</td> </tr> <tr> <td>telephone</td> <td>是</td> <td>sting</td> <td>10</td> <td>联系电话</td> </tr> <tr> <td>stored_days</td> <td>是</td> <td>int</td> <td>10</td> <td>数据存储(天)</td> </tr> <tr> <td>record_type</td> <td>是</td> <td>int</td> <td>10</td> <td>录音类型, 3:转坐席录音; 2:应答录音; 1:全程录音; 0:不录音</td> </tr> <tr> <td>record_format</td> <td>是</td> <td>sting</td> <td>10</td> <td>录音格式</td> </tr> <tr> <td>decrypt</td> <td>是</td> <td>sting</td> <td>10</td> <td>号码脱敏,none:不加密,hide:隐藏中间四位,md5:MD5加密</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;:&amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 //用户id }</code></pre> <hr /> <p>**</p> <h3>简要描述:</h3> <p>**</p> <ul> <li> <h1>修改</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/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>passwd</td> <td>是</td> <td>sting</td> <td>1</td> <td>密码</td> </tr> <tr> <td>company</td> <td>是</td> <td>sting</td> <td>10</td> <td>公司名</td> </tr> <tr> <td>contact</td> <td>是</td> <td>sting</td> <td>10</td> <td>联系人</td> </tr> <tr> <td>telephone</td> <td>是</td> <td>sting</td> <td>10</td> <td>联系电话</td> </tr> <tr> <td>stored_days</td> <td>是</td> <td>int</td> <td>10</td> <td>数据存储(天)</td> </tr> <tr> <td>record_type</td> <td>是</td> <td>int</td> <td>10</td> <td>录音类型, 3:转坐席录音; 2:应答录音; 1:全程录音; 0:不录音</td> </tr> <tr> <td>record_format</td> <td>是</td> <td>sting</td> <td>10</td> <td>录音格式</td> </tr> <tr> <td>decrypt</td> <td>是</td> <td>sting</td> <td>10</td> <td>号码脱敏,none:不加密,hide:隐藏中间四位,md5:MD5加密</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;:&amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <p>**</p> <h3>简要描述:</h3> <p>**</p> <ul> <li> <h1>充值</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/recharge/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>recharge_money</td> <td>是</td> <td>int</td> <td>金额(元)</td> </tr> <tr> <td>name</td> <td>是</td> <td>string</td> <td>用户名</td> </tr> <tr> <td>remark</td> <td>是</td> <td>sting</td> <td>描述</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;:&amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <p>**</p> <h3>简要描述:</h3> <p>**</p> <ul> <li> <h1>删除</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/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>id,多个用逗号分割,例如:1,2,3</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;:&amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: 1 }</code></pre> <hr /> <p>**</p> <h3>简要描述:</h3> <p>**</p> <ul> <li> <h1>快捷登录</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/quick_login</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>用户id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;管理员登录成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;role&amp;quot;: &amp;quot;admin&amp;quot;, &amp;quot;access_token&amp;quot;: &amp;quot;eyJhbGciOiJIUzI1NiJ9.eyJzdXBlcl9hZG1pbiI6MSwibmFtZSI6InRlc3QwMSIsImlzcyI6ImI4MGFlNGUyZTQ1NzY1ZGJkOTM2NzRkMTc0NjBiODM5IiwiYWRtaW4iOjIsInBlcm1pc3Npb24iOjEsImRlY3J5cHQiOiIiLCJleHAiOjE2Mjk3MjY0Njc3MzIsImlhdCI6MTYyOTY4MzI2NzczMn0.G2HEirxZqZnt4mRNUvZijf6UvwW08s9fXHQ5f7l4FOs&amp;quot; } }</code></pre> <h3><strong>简要描述:</strong></h3> <ul> <li> <h1>获取所有管理用户</h1> </li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>http://../super_admin/admin/list</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [{ &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;l20212&amp;quot;, &amp;quot;passwd&amp;quot;: &amp;quot;l20212&amp;quot;, &amp;quot;company&amp;quot;: &amp;quot;哈尔滨&amp;quot;, &amp;quot;contact&amp;quot;: &amp;quot;222&amp;quot;, &amp;quot;telephone&amp;quot;: &amp;quot;2021-08-09&amp;quot;, &amp;quot;record_format&amp;quot;: &amp;quot;${ext}_${tel}_${date}.wav&amp;quot;, &amp;quot;stored_days&amp;quot;: 60, &amp;quot;balance&amp;quot;: 7466.5000, &amp;quot;record_type&amp;quot;: 3, &amp;quot;consumes&amp;quot;: 81.9600, &amp;quot;decrypt&amp;quot;: &amp;quot;none&amp;quot;, &amp;quot;expand&amp;quot;: null }] }</code></pre> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的状态码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML