角色树形菜单
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>角色树形菜单接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://47.111.70.10:8091/collector-siot-smb/api/role/selectPermissionTree</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">是否必须</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>[
{
"name": "首页",
"pId": 0,
"id": 23
},
{
"name": "设备管理",
"pId": 0,
"id": 40
},
{
"name": "设备详情",
"pId": 40,
"id": 41
},
{
"name": "策略管理",
"pId": 0,
"id": 42
},
{
"name": "策略详情",
"pId": 42,
"id": 43
},
{
"name": "添加策略",
"pId": 42,
"id": 44
},
{
"name": "棒料管理",
"pId": 0,
"id": 45
},
{
"name": "棒料详情",
"pId": 45,
"id": 46
},
{
"name": "账号管理",
"pId": 0,
"id": 47
},
{
"name": "账号新增",
"pId": 47,
"id": 48
},
{
"name": "账号编辑",
"pId": 47,
"id": 49
},
{
"name": "角色管理",
"pId": 0,
"id": 50
},
{
"name": "角色新增",
"pId": 50,
"id": 51
},
{
"name": "角色编辑",
"pId": 50,
"id": 52
},
{
"name": "权限管理",
"pId": 0,
"id": 53
}
]</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;">name</td>
<td style="text-align: left;">String</td>
<td>权限名称</td>
</tr>
<tr>
<td style="text-align: left;">pId</td>
<td style="text-align: left;">object</td>
<td>父级id</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">Integer</td>
<td>权限id</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>