2.2查询平台下的所有菜单
<p>欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>2.2查询平台下的所有菜单</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/admin/menu/getMenuTreeByPlatformId/{id}</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong>参数:</strong> </p>
<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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>平台id ,从左侧选择的平台item中取</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> [
{
"id": 1,
"parentId": -1,
"children": [
{
"id": 2,
"parentId": 1,
"children": [
{
"id": 21,
"parentId": 2,
"children": [],
"icon": null,
"name": "用户查看",
"url": "/admin/user/**",
"spread": false,
"path": null,
"component": null,
"authority": null,
"redirect": null,
"code": "",
"type": null,
"label": "用户查看",
"sort": null
}
],
"icon": "icon-yonghuguanli",
"name": "用户管理",
"url": "",
"spread": false,
"path": "user",
"component": "views/admin/user/index",
"authority": null,
"redirect": null,
"code": null,
"type": null,
"label": "用户管理",
"sort": null
},
{
"id": 3,
"parentId": 1,
"children": [],
"icon": "icon-caidanguanli",
"name": "菜单管理",
"url": "",
"spread": false,
"path": "menu",
"component": "views/admin/menu/index",
"authority": null,
"redirect": null,
"code": null,
"type": null,
"label": "菜单管理",
"sort": null
},
{
"id": 4,
"parentId": 1,
"children": [],
"icon": "icon-jiaoseguanli",
"name": "角色管理",
"url": null,
"spread": false,
"path": "role",
"component": "views/admin/role/index",
"authority": null,
"redirect": null,
"code": null,
"type": null,
"label": "角色管理",
"sort": null
}
],
"icon": "icon-xitongguanli",
"name": "系统管理",
"url": null,
"spread": false,
"path": "/admin",
"component": "Layout",
"authority": null,
"redirect": null,
"code": null,
"type": null,
"label": "系统管理",
"sort": null
}
]</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>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>