- v1
- auth
- route
- system-manage
- miniapp
查看菜单树
GET
/api/v1/system-manage/menus/tree/
v1系统管理菜单管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{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 '/api/v1/system-manage/menus/tree/' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
array [object {4}]
必需
id
integer
必需
label
string
必需
pId
integer
必需
children
array [object {4}]
必需
示例
{"code":"0000","msg":"OK","data":[{"id":5,"label":"首页","pId":0},{"id":6,"label":"功能","pId":0,"children":[{"id":7,"label":"切换权限","pId":6},{"id":8,"label":"请求","pId":6},{"id":9,"label":"超级管理员可见","pId":6},{"id":10,"label":"多标签页","pId":6},{"id":11,"label":"标签页","pId":6},{"id":12,"label":"隐藏子菜单","pId":6,"children":[{"id":13,"label":"隐藏子菜单1","pId":12},{"id":14,"label":"隐藏子菜单2","pId":12},{"id":15,"label":"隐藏子菜单3","pId":12}]}]},{"id":16,"label":"异常页","pId":0,"children":[{"id":17,"label":"403","pId":16},{"id":18,"label":"404","pId":16},{"id":19,"label":"500","pId":16}]},{"id":20,"label":"多级菜单","pId":0,"children":[{"id":21,"label":"一级子菜单1","pId":20,"children":[{"id":22,"label":"二级子菜单","pId":21}]},{"id":23,"label":"一级子菜单2","pId":20,"children":[{"id":24,"label":"二级子菜单2","pId":23,"children":[{"id":25,"label":"三级菜单","pId":24}]}]}]},{"id":26,"label":"系统管理","pId":0,"children":[{"id":27,"label":"日志管理","pId":26},{"id":28,"label":"API管理","pId":26},{"id":29,"label":"用户管理","pId":26},{"id":30,"label":"角色管理","pId":26},{"id":31,"label":"菜单管理","pId":26},{"id":32,"label":"用户详情","pId":26}]},{"id":33,"label":"关于","pId":0}]}
修改于 2024-05-17 05:45:25