用户列表路由
<h5>接口描述</h5>
<ul>
<li>用户列表模板</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/api/admin/users</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>请求头部</h5>
<p>|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|Authorization |是 |string |JWT token|</p>
<h5>返回示例</h5>
<ul>
<li>状态码 200 请求成功</li>
</ul>
<pre><code>{
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;name&quot;: &quot;a&quot;,
&quot;email&quot;: &quot;a@a.com&quot;,
&quot;created_at&quot;: null,
&quot;updated_at&quot;: &quot;2024-03-27T20:04:08.000000Z&quot;
},
{
&quot;id&quot;: 2,
&quot;name&quot;: &quot;b&quot;,
&quot;email&quot;: &quot;b@b.com&quot;,
&quot;created_at&quot;: null,
&quot;updated_at&quot;: null
}
],
&quot;meta&quot;: {
&quot;pagination&quot;: {
&quot;total&quot;: 3,
&quot;count&quot;: 2,
&quot;per_page&quot;: 2,
&quot;current_page&quot;: 1,
&quot;total_pages&quot;: 2,
&quot;links&quot;: {
&quot;next&quot;: &quot;http://api.test/api/admin/users?page=2&quot;
}
}
}
}</code></pre>
<ul>
<li>
<p>状态码 201 成功</p>
</li>
<li>状态码 401 未提供令牌</li>
</ul>