角色列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>角色列表接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/adm/roles</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>
<p>GET </p>
<p><strong>返回示例</strong></p>
</li>
</ul>
<pre><code>{
"result": "success",
"data": [
{
"id": 1,
"code": "admin",
"name": "管理员",
"type": "org",
"description": null,
"created_at": null,
"org_id": 0,
"user_count": 11
},
{
"id": 2,
"code": "operator",
"name": "运营",
"type": "org",
"description": null,
"created_at": null,
"org_id": 0,
"user_count": 0
},
{
"id": 3,
"code": "finance",
"name": "财务",
"type": "org",
"description": null,
"created_at": null,
"org_id": 0,
"user_count": 0
},
{
"id": 4,
"code": "teacher",
"name": "名师",
"type": "org",
"description": null,
"created_at": null,
"org_id": 0,
"user_count": 0
}
],
"message": "操作成功",
"ct": 1546417985
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>