ordermeal后台管理系统


用户列表

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>用户列表接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://localhost:3000/admin/api/user/list</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>请求头</h5> <table> <thead> <tr> <th style="text-align: left;">键名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">值类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Authorization</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>令牌</td> </tr> </tbody> </table> <h5>参数</h5> <p>无</p> <h5>返回示例</h5> <h6>成功示例</h6> <pre><code> { &amp;quot;error_code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;用户列表获取成功!&amp;quot;, &amp;quot;data&amp;quot;: [ rolelist: [ { name: &amp;quot;超级管理员&amp;quot;, _id: &amp;quot;6465e3d6d1da1595366f3d9b&amp;quot;, auths: [ { _id: &amp;quot;645f620e6e33032c1c109a1b&amp;quot;, icon: &amp;quot;el-icon-s-custom&amp;quot;. isShow: true, name: &amp;quot;用户管理&amp;quot;, parentId: &amp;quot;0&amp;quot;, children: [ { _id: &amp;quot;645f989ee0997149f5c68a17&amp;quot;, name: &amp;quot;用户添加&amp;quot;, path: &amp;quot;/user/add&amp;quot;, ... }, ... ] }, ... ] }, ... ] ] }</code></pre> <h5>返回参数说明</h5> <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;">error_code</td> <td style="text-align: left;">int</td> <td>响应状态码,200成功</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML