获取权限菜单
GET
/myauth/web/getMenuList只会获得当前登录账号角色有权限的菜单,一般用于动态菜单展示,增删查改不要用这个
请求参数
Header 参数
token
string
必需
示例值:
ea3d9ceed86c4e738f9693ebc7efe6d1
示例代码
返回响应
成功(200)
错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
array [object {9}]
必需
id
string
必需
parentId
string
父ID,根则空
level
integer
层级,从1开始
sort
integer
排序,越小越大,从1开始
type
integer
1=目录,2=菜单
path
string | null
菜单路由
title
string
标题
icon
string
图标
children
array [object {9}]
必需
timestamp
integer
必需
示例成功示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": [
{
"id": "59664367-11eb-489e-867d-af6c66129d03",
"parentId": "0",
"level": 1,
"sort": 1,
"type": 2,
"path": "/Home/Introduce",
"title": "首页",
"icon": "home",
"children": []
},
{
"id": "30633357-dd12-415e-8631-660e2aa6b9ad",
"parentId": "0",
"level": 1,
"sort": 2,
"type": 2,
"path": null,
"title": "信息管理",
"icon": "home",
"children": [
{
"id": "e50cadbc-8b2b-4c8f-a262-9da95d3371bb",
"parentId": "30633357-dd12-415e-8631-660e2aa6b9ad",
"level": 2,
"sort": 1,
"type": 2,
"path": "/InfoManage/SoftManage/List",
"title": "软件管理",
"icon": "",
"children": []
},
{
"id": "94beb8ae-a606-4dea-bfa8-57bc734818bf",
"parentId": "30633357-dd12-415e-8631-660e2aa6b9ad",
"level": 2,
"sort": 2,
"type": 2,
"path": "/InfoManage/VersionsManage/List",
"title": "版本管理",
"icon": "",
"children": []
},
{
"id": "bcb68a35-eb0f-4696-acd8-3c76897e0f0f",
"parentId": "30633357-dd12-415e-8631-660e2aa6b9ad",
"level": 2,
"sort": 3,
"type": 2,
"path": "/InfoManage/UserManage/List",
"title": "用户管理",
"icon": "",
"children": []
}
]
},
{
"id": "d6321208-4980-46e3-b3d4-ec057009472c",
"parentId": "0",
"level": 1,
"sort": 3,
"type": 1,
"path": null,
"title": "数据维护",
"icon": "home",
"children": [
{
"id": "b89eb2d8-40e4-4698-ab5a-ddaed7846ee1",
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 1,
"type": 2,
"path": "/DataMaintenance/MsgManage/List",
"title": "回复管理",
"icon": null,
"children": []
},
{
"id": "e70b3176-a2fa-4fc5-90f3-5abd9e2d13b8",
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 2,
"type": 2,
"path": "/DataMaintenance/CardPassManage/List",
"title": "卡密管理",
"icon": null,
"children": []
},
{
"id": "1d3838df-bc61-42e1-a149-dcc2705e2894",
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 3,
"type": 2,
"path": "/DataMaintenance/FuncManage/List",
"title": "函数管理",
"icon": null,
"children": []
},
{
"id": "53311cca-a9aa-4a08-8e4b-862f8b598243",
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 4,
"type": 1,
"path": null,
"title": "三级目录",
"icon": null,
"children": [
{
"id": "f19616aa-eadd-46b8-b551-749f3842b363",
"parentId": "53311cca-a9aa-4a08-8e4b-862f8b598243",
"level": 3,
"sort": 1,
"type": 2,
"path": "/test/test/test",
"title": "你好",
"icon": null,
"children": null
},
{
"id": "dab554f4-ddff-4048-9da7-e112d02d27d2",
"parentId": "53311cca-a9aa-4a08-8e4b-862f8b598243",
"level": 3,
"sort": 2,
"type": 2,
"path": "/asd/asd/asd",
"title": "哈哈",
"icon": null,
"children": null
}
]
},
{
"id": "5b35fe6a-da5f-46d5-b1ed-076308a38a13",
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 5,
"type": 2,
"path": "DataMaintenance/EventManage/List",
"title": "事件管理",
"icon": null,
"children": []
}
]
}
],
"timestamp": 1646838238242
}
最后修改时间: 3 年前