菜单数据
开发中POST
/api/v1/menus请求参数
Body 参数application/json
object {0}
示例
{}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
[
{
"children": [
{
"href": "/person",
"icon": "layui-icon layui-icon-console",
"id": 26,
"permission_id": 300001,
"pid": 300,
"sort": 0,
"title": "控制后台",
"type": 1
}
],
"href": null,
"icon": "layui-icon layui-icon-console",
"id": 25,
"permission_id": 300,
"pid": 0,
"sort": 1,
"title": "工作空间",
"type": 0
},
{
"children": [
{
"href": "/user",
"icon": "1",
"id": 17,
"permission_id": 100004,
"pid": 100,
"sort": 0,
"title": "员工管理",
"type": 1
},
{
"href": "/department",
"icon": "1",
"id": 12,
"permission_id": 100003,
"pid": 100,
"sort": 0,
"title": "部门管理",
"type": 1
},
{
"href": "/role",
"icon": "1",
"id": 7,
"permission_id": 100002,
"pid": 100,
"sort": 0,
"title": "角色管理",
"type": 1
},
{
"href": "/permission",
"icon": "1",
"id": 2,
"permission_id": 100001,
"pid": 100,
"sort": 0,
"title": "权限管理",
"type": 1
}
],
"href": null,
"icon": "layui-icon layui-icon-set-fill",
"id": 1,
"permission_id": 100,
"pid": 0,
"sort": 2,
"title": "系统管理",
"type": 0
},
{
"children": [
{
"href": "/echarts/column",
"icon": "layui-icon layui-icon-face-smile",
"id": 24,
"permission_id": 200002,
"pid": 200,
"sort": 0,
"title": "柱状图",
"type": 1
},
{
"href": "/echarts/line",
"icon": "layui-icon layui-icon-face-smile",
"id": 23,
"permission_id": 200001,
"pid": 200,
"sort": 0,
"title": "折线图",
"type": 1
}
],
"href": null,
"icon": "layui-icon layui-icon-chart",
"id": 22,
"permission_id": 200,
"pid": 0,
"sort": 3,
"title": "数据图表",
"type": 0
}
]
最后修改时间: 1 年前