角色菜单
<h5>简要描述</h5>
<ul>
<li>角色菜单的接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://192.168.1.79/api/role/menu</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;"></td>
<td>否</td>
<td>string</td>
<td>设备token</td>
</tr>
</tbody>
</table>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">role_id</td>
<td style="text-align: left;"></td>
<td>是</td>
<td>string</td>
<td>角色id</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: [
{
&quot;id&quot;: 1,
&quot;name&quot;: &quot;operation&quot;,
&quot;route&quot;: &quot;\/operation&quot;,
&quot;icon&quot;: &quot;&quot;,
&quot;parent_id&quot;: 0,
&quot;sort&quot;: 0,
&quot;created_at&quot;: &quot;2025-02-14 06:36:34&quot;,
&quot;updated_at&quot;: &quot;2025-02-14 06:36:36&quot;,
&quot;deleted_at&quot;: null,
&quot;meta&quot;: {
&quot;title&quot;: &quot;运营板块&quot;,
&quot;icon&quot;: &quot;el-icon-copy-document&quot;,
&quot;type&quot;: &quot;menu&quot;
},
&quot;status&quot;: 1,
&quot;type&quot;: 0,
&quot;hidden&quot;: false,
&quot;component&quot;: &quot;&quot;,
&quot;path&quot;: &quot;\/operation&quot;,
&quot;children&quot;: [
{
&quot;id&quot;: 3,
&quot;name&quot;: &quot;data&quot;,
&quot;route&quot;: &quot;\/data&quot;,
&quot;icon&quot;: &quot;&quot;,
&quot;parent_id&quot;: 1,
&quot;sort&quot;: 0,
&quot;created_at&quot;: &quot;2025-02-18 00:38:11&quot;,
&quot;updated_at&quot;: &quot;2025-02-18 00:38:13&quot;,
&quot;deleted_at&quot;: null,
&quot;meta&quot;: {
&quot;title&quot;: &quot;数据&quot;,
&quot;icon&quot;: &quot;el-icon-data-analysis&quot;,
&quot;type&quot;: &quot;menu&quot;
},
&quot;status&quot;: 1,
&quot;type&quot;: 0,
&quot;hidden&quot;: false,
&quot;component&quot;: &quot;&quot;,
&quot;path&quot;: &quot;\/data&quot;,
&quot;children&quot;: [],
&quot;pivot&quot;: {
&quot;customer_id&quot;: 1,
&quot;menu_id&quot;: 3
}
}
],
&quot;pivot&quot;: {
&quot;customer_id&quot;: 1,
&quot;menu_id&quot;: 1
}
}
]
}
</code></pre>
<h5>备注</h5>
<p>这里是备注信息</p>