获取菜单列表
<h5>简要描述</h5>
<ul>
<li>获取菜单列表</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://merchant.somutech.net/getroute</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;">username</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>昵称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 200,
"msg": "success",
"data": [
{
"per_id": 101853,
"per_pid": 0,
"per_title": "商户管理",
"per_modul": null,
"per_controller": null,
"per_action": null,
"per_route": null,
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": "xe75f",
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47",
"son": [
{
"per_id": 101861,
"per_pid": 101853,
"per_title": "商户列表",
"per_modul": "Admin",
"per_controller": "WebMerchant",
"per_action": "merchantList",
"per_route": "merchantlist",
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": null,
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47"
},
{
"per_id": 101879,
"per_pid": 101853,
"per_title": "收款通道",
"per_modul": "Admin",
"per_controller": "WebMerchant",
"per_action": "merchantAction",
"per_route": "merchantaction",
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": null,
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47"
}
]
},
{
"per_id": 101854,
"per_pid": 0,
"per_title": "支付通道管理",
"per_modul": null,
"per_controller": null,
"per_action": null,
"per_route": null,
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": "xe6b8",
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47",
"son": [
{
"per_id": 101877,
"per_pid": 101854,
"per_title": "商户通道列表",
"per_modul": "Admin",
"per_controller": "WebMerchant",
"per_action": "merchantChannalList",
"per_route": "merchantchannallist",
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": null,
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47"
}
]
},
{
"per_id": 101855,
"per_pid": 0,
"per_title": "流水管理",
"per_modul": null,
"per_controller": null,
"per_action": null,
"per_route": null,
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": "xe758",
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47",
"son": [
{
"per_id": 101867,
"per_pid": 101855,
"per_title": "流水明细",
"per_modul": "Admin",
"per_controller": "WebFlow",
"per_action": "flowList",
"per_route": "flowlist",
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": null,
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47"
}
]
},
{
"per_id": 101856,
"per_pid": 0,
"per_title": "订单管理",
"per_modul": null,
"per_controller": null,
"per_action": null,
"per_route": null,
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": "xe6a2",
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47",
"son": [
{
"per_id": 101868,
"per_pid": 101856,
"per_title": "订单列表",
"per_modul": "Admin",
"per_controller": "WebOrder",
"per_action": "orderList",
"per_route": "orderlist",
"per_relation": 0,
"per_view": 1,
"per_status": 1,
"per_icon": null,
"per_type": 2,
"update_time": null,
"create_time": "2022-08-10 18:06:47"
}
]
}
]
}</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;">per_id</td>
<td style="text-align: left;">int</td>
<td>菜单id</td>
</tr>
<tr>
<td style="text-align: left;">per_pid</td>
<td style="text-align: left;">int</td>
<td>上级菜单id</td>
</tr>
<tr>
<td style="text-align: left;">per_title</td>
<td style="text-align: left;">int</td>
<td>菜单名称</td>
</tr>
<tr>
<td style="text-align: left;">per_modul</td>
<td style="text-align: left;">int</td>
<td>所属模块</td>
</tr>
<tr>
<td style="text-align: left;">per_controll</td>
<td style="text-align: left;">int</td>
<td>所属控制器</td>
</tr>
<tr>
<td style="text-align: left;">per_action</td>
<td style="text-align: left;">int</td>
<td>方法名称</td>
</tr>
<tr>
<td style="text-align: left;">per_route</td>
<td style="text-align: left;">int</td>
<td>路由名称</td>
</tr>
<tr>
<td style="text-align: left;">per_relation</td>
<td style="text-align: left;">int</td>
<td>关联权限id</td>
</tr>
<tr>
<td style="text-align: left;">per_view</td>
<td style="text-align: left;">int</td>
<td>1:显示 2:不显示</td>
</tr>
<tr>
<td style="text-align: left;">per_status</td>
<td style="text-align: left;">int</td>
<td>1:正常 2:禁用</td>
</tr>
<tr>
<td style="text-align: left;">per_icon</td>
<td style="text-align: left;">int</td>
<td>图标</td>
</tr>
<tr>
<td style="text-align: left;">per_type</td>
<td style="text-align: left;">int</td>
<td>1:后端 2:前端</td>
</tr>
<tr>
<td style="text-align: left;">update_time</td>
<td style="text-align: left;">int</td>
<td>添加时间</td>
</tr>
<tr>
<td style="text-align: left;">create_time</td>
<td style="text-align: left;">int</td>
<td>修改</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>