用户列表
<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> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;id&quot;: 27,
&quot;name&quot;: &quot;test&quot;,
&quot;passwd&quot;: &quot;123456@&quot;,
&quot;company&quot;: &quot;1111&quot;,
&quot;contact&quot;: &quot;123123&quot;,
&quot;telephone&quot;: &quot;123132&quot;,
&quot;record_format&quot;: &quot;${ext}_${tel}_${date}.wav&quot;,
&quot;stored_days&quot;: 30,
&quot;balance&quot;: 100.0000,
&quot;record_type&quot;: 3,
&quot;consumes&quot;: 0.0000,
&quot;decrypt&quot;: &quot;none&quot;,
&quot;expand&quot;: null
} ],
&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>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> {
&quot;code&quot;: 0,
&quot;msg&quot;:&quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;:&quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;:&quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;:&quot;&quot;,
&quot;data&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> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;管理员登录成功&quot;,
&quot;data&quot;: {
&quot;role&quot;: &quot;admin&quot;,
&quot;access_token&quot;: &quot;eyJhbGciOiJIUzI1NiJ9.eyJzdXBlcl9hZG1pbiI6MSwibmFtZSI6InRlc3QwMSIsImlzcyI6ImI4MGFlNGUyZTQ1NzY1ZGJkOTM2NzRkMTc0NjBiODM5IiwiYWRtaW4iOjIsInBlcm1pc3Npb24iOjEsImRlY3J5cHQiOiIiLCJleHAiOjE2Mjk3MjY0Njc3MzIsImlhdCI6MTYyOTY4MzI2NzczMn0.G2HEirxZqZnt4mRNUvZijf6UvwW08s9fXHQ5f7l4FOs&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> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;id&quot;: 1,
&quot;name&quot;: &quot;l20212&quot;,
&quot;passwd&quot;: &quot;l20212&quot;,
&quot;company&quot;: &quot;哈尔滨&quot;,
&quot;contact&quot;: &quot;222&quot;,
&quot;telephone&quot;: &quot;2021-08-09&quot;,
&quot;record_format&quot;: &quot;${ext}_${tel}_${date}.wav&quot;,
&quot;stored_days&quot;: 60,
&quot;balance&quot;: 7466.5000,
&quot;record_type&quot;: 3,
&quot;consumes&quot;: 81.9600,
&quot;decrypt&quot;: &quot;none&quot;,
&quot;expand&quot;: null
}]
}</code></pre>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的状态码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>