2.3新增菜单
<p><strong>简要描述:</strong> </p>
<ul>
<li>2.3新增菜单</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/admin/menu</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
<li>Content-Type: application/json</li>
</ul>
<p><strong>参数:</strong> </p>
<pre><code> {
"name": "测试", //菜单名
"permission": "", //授权标识
"path": "/user/login", //菜单URL
"parentId": "1", //父菜单id(最顶层id传-1)
"icon": "#777777", //图标
"sort": 1, //排序
"platformId": 1 //所属平台id
"type":1 //类型 0:目录 1:菜单 2:按钮
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {
"msg": "success",
"code": 0,
"data": true
}</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>
<p>欢迎使用ShowDoc!</p>