获取完整菜单--权限树
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取完整菜单 权限树</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://dev.yibaojiankang.com/api/oms/role/menu_tree</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 style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: &quot;200&quot;,
&quot;data&quot;: {
&quot;tree&quot;: [
{
&quot;children&quot;: [
{
&quot;children&quot;: [
{
&quot;key&quot;: 143,
&quot;parent_id&quot;: 142,
&quot;title&quot;: &quot;创建项目&quot;,
&quot;value&quot;: &quot;/projectmanage/project/add&quot;
}
],
&quot;key&quot;: 142,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;项目配置&quot;,
&quot;value&quot;: &quot;/projectmanage/project&quot;
},
{
&quot;key&quot;: 144,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;产品连锁配置&quot;,
&quot;value&quot;: &quot;/projectmanage/product&quot;
},
{
&quot;key&quot;: 145,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;配置详情&quot;,
&quot;value&quot;: &quot;/projectmanage/product/setting&quot;
},
{
&quot;children&quot;: [
{
&quot;key&quot;: 147,
&quot;parent_id&quot;: 146,
&quot;title&quot;: &quot;创建方案&quot;,
&quot;value&quot;: &quot;/projectmanage/scheme/add&quot;
}
],
&quot;key&quot;: 146,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;方案模版&quot;,
&quot;value&quot;: &quot;/projectmanage/scheme&quot;
},
{
&quot;children&quot;: [
{
&quot;key&quot;: 149,
&quot;parent_id&quot;: 148,
&quot;title&quot;: &quot;创建满减优惠券&quot;,
&quot;value&quot;: &quot;/projectmanage/discount/add&quot;
}
],
&quot;key&quot;: 148,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;优惠券模版&quot;,
&quot;value&quot;: &quot;/projectmanage/discount&quot;
},
{
&quot;children&quot;: [
{
&quot;key&quot;: 151,
&quot;parent_id&quot;: 150,
&quot;title&quot;: &quot;连锁相关信息&quot;,
&quot;value&quot;: &quot;/chainmanage/chaininfo&quot;
},
{
&quot;key&quot;: 152,
&quot;parent_id&quot;: 150,
&quot;title&quot;: &quot;门店管理&quot;,
&quot;value&quot;: &quot;/chainmanage/chaininfo/shop&quot;
}
],
&quot;key&quot;: 150,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;连锁管理&quot;,
&quot;value&quot;: &quot;/chainmanage&quot;
},
{
&quot;children&quot;: [
{
&quot;key&quot;: 154,
&quot;parent_id&quot;: 153,
&quot;title&quot;: &quot;成员管理&quot;,
&quot;value&quot;: &quot;/authmanage/membermanage&quot;
},
{
&quot;key&quot;: 155,
&quot;parent_id&quot;: 153,
&quot;title&quot;: &quot;角色管理&quot;,
&quot;value&quot;: &quot;/authmanage/rolesmanage&quot;
}
],
&quot;key&quot;: 153,
&quot;parent_id&quot;: 141,
&quot;title&quot;: &quot;权限管理&quot;,
&quot;value&quot;: &quot;/authmanage&quot;
}
],
&quot;key&quot;: 141,
&quot;parent_id&quot;: 0,
&quot;title&quot;: &quot;项目管理&quot;,
&quot;value&quot;: &quot;/projectmanage&quot;
}
]
},
&quot;message&quot;: &quot;获取权限树成功&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;">key</td>
<td style="text-align: left;">int</td>
<td>菜单id</td>
</tr>
<tr>
<td style="text-align: left;">parent_id</td>
<td style="text-align: left;">int</td>
<td>上级菜单id</td>
</tr>
<tr>
<td style="text-align: left;">title</td>
<td style="text-align: left;">str</td>
<td>菜单标题</td>
</tr>
<tr>
<td style="text-align: left;">value</td>
<td style="text-align: left;">str</td>
<td>菜单路径</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>