- v1
- auth
- route
- system-manage
- miniapp
查看菜单按钮树
GET
/api/v1/system-manage/menus/buttons/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/buttons/tree/' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
array [object {4}]
必需
id
string
必需
label
string
必需
pId
integer
必需
children
array [object {4}]
必需
示例
{
"code": "0000",
"msg": "OK",
"data": [
{
"id": "parent$6",
"label": "功能",
"pId": 0,
"children": [
{
"id": "parent$7",
"label": "切换权限",
"pId": 6,
"children": [
{
"id": 1,
"label": "B_CODE1",
"pId": 7
},
{
"id": 2,
"label": "B_CODE2",
"pId": 7
},
{
"id": 3,
"label": "B_CODE3",
"pId": 7
}
]
}
]
},
{
"id": "parent$26",
"label": "系统管理",
"pId": 0,
"children": [
{
"id": "parent$27",
"label": "日志管理",
"pId": 26,
"children": [
{
"id": 4,
"label": "B_Add_Del_Batch-del",
"pId": 27
}
]
},
{
"id": "parent$28",
"label": "API管理",
"pId": 26,
"children": [
{
"id": 5,
"label": "B_refreshAPI",
"pId": 28
}
]
}
]
}
]
}