获取权限菜单
GET
/permission/get_dynamic_routes
请求参数
Header 参数
X-token
string
可选
默认值:
{{X-Token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/permission/get_dynamic_routes' \
--header 'X-token: {{X-Token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
dynamic_routes
array [object {20}]
必需
all_path
array[string]
必需
示例
{
"code": 0,
"message": "success",
"data": [
{
"menu_id": 2,
"route_name": null,
"title": "系统管理",
"icon": "setting",
"path": null,
"menu_type": "M",
"permission": null,
"parent_id": 0,
"component": null,
"sort": 199,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": null,
"created_at": "2021-08-05 11:36:08",
"updated_at": null,
"children": [
{
"menu_id": 5,
"route_name": "SysUser",
"title": "用户管理",
"icon": null,
"path": "/admin/sys-user",
"menu_type": "C",
"permission": "admin:sysuser",
"parent_id": 2,
"component": "/admin/sys-user/index.vue",
"sort": 0,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:48:47",
"updated_at": "2023-12-29 21:59:00",
"children": []
},
{
"menu_id": 6,
"route_name": "SysRole",
"title": "角色管理",
"icon": null,
"path": "/admin/sys-role",
"menu_type": "C",
"permission": "admin:sysrole",
"parent_id": 2,
"component": "/admin/sys-role/index.vue",
"sort": 1,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:49:40",
"updated_at": "2023-12-29 21:59:08",
"children": []
},
{
"menu_id": 1,
"route_name": "SysMenu",
"title": "菜单管理",
"icon": null,
"path": "/admin/sys-menu",
"menu_type": "C",
"permission": "admin:sysmenu",
"parent_id": 2,
"component": "/admin/sys-menu/index.vue",
"sort": 2,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": null,
"update_by": 1,
"created_at": "2021-08-05 11:05:32",
"updated_at": "2021-08-09 14:12:08",
"children": []
},
{
"menu_id": 7,
"route_name": "SysApi",
"title": "接口管理",
"icon": null,
"path": "/admin/sys-api",
"menu_type": "C",
"permission": "admin:sysapi",
"parent_id": 2,
"component": "/admin/sys-api/index.vue",
"sort": 3,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:51:29",
"updated_at": "2023-12-29 21:59:25",
"children": []
},
{
"menu_id": 3,
"route_name": "SysDict",
"title": "字典管理",
"icon": null,
"path": "/admin/sys-dict",
"menu_type": "C",
"permission": "admin:sysdict",
"parent_id": 2,
"component": "/admin/sys-dict/index.vue",
"sort": 4,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:37:34",
"updated_at": "2023-12-29 21:59:37",
"children": []
},
{
"menu_id": 4,
"route_name": "SysDictData",
"title": "字典数据管理",
"icon": null,
"path": "/admin/sys-dict/data/:dictId",
"menu_type": "C",
"permission": "admin:sysdictdata",
"parent_id": 2,
"component": "/admin/sys-dict/data.vue",
"sort": 4,
"visible": 0,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:40:54",
"updated_at": "2023-12-29 21:59:56",
"children": []
},
{
"menu_id": 8,
"route_name": null,
"title": "系统日志",
"icon": null,
"path": null,
"menu_type": "M",
"permission": null,
"parent_id": 2,
"component": null,
"sort": 5,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:52:24",
"updated_at": "2021-08-05 11:52:31",
"children": [
{
"menu_id": 9,
"route_name": "SysLoginLog",
"title": "登录日志",
"icon": null,
"path": "/admin/sys-login-log",
"menu_type": "C",
"permission": "admin:sysloginlog",
"parent_id": 8,
"component": "/admin/sys-login-log/index.vue",
"sort": 0,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:53:18",
"updated_at": "2023-12-29 22:00:06",
"children": []
},
{
"menu_id": 10,
"route_name": "SysOperationLog",
"title": "操作日志",
"icon": null,
"path": "/admin/sys-operation-log",
"menu_type": "C",
"permission": "admin:sysoperationlog",
"parent_id": 8,
"component": "/admin/sys-operation-log/index.vue",
"sort": 1,
"visible": 1,
"is_frame": 0,
"layout": 1,
"cache": 0,
"create_by": 1,
"update_by": 1,
"created_at": "2021-08-05 11:54:06",
"updated_at": "2023-12-29 22:00:11",
"children": []
}
]
}
]
}
]
}
修改于 2024-01-16 14:04:58