- pig获取token
- pig-学习-oauth2逻辑
- pig-学习-cloud
- feign学习
- 用户模块
- 注册登录
- 部门管理
- 菜单管理
- 角色管理
- 字典管理
返回当前用户的树形菜单集合
开发中
GET
/menu
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
parentId
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/menu'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 0,
"msg": null,
"data": [
{
"id": "1000",
"parentId": "-1",
"weight": 1,
"name": "权限管理",
"path": "/admin",
"keepAlive": "0",
"sortOrder": 1,
"icon": "icon-quanxianguanli",
"permission": null,
"label": "权限管理",
"type": "0",
"children": [
{
"id": "1100",
"parentId": "1000",
"weight": 0,
"name": "用户管理",
"path": "/admin/user/index",
"keepAlive": "0",
"sortOrder": 0,
"icon": "icon-yonghuguanli",
"permission": null,
"label": "用户管理",
"type": "0"
}
]
},
{
"id": "3000",
"parentId": "-1",
"weight": 3,
"name": "开发平台",
"path": "/gen",
"keepAlive": "1",
"sortOrder": 3,
"icon": "icon-shejiyukaifa-",
"permission": null,
"label": "开发平台",
"type": "2",
"children": [
{
"id": "3300",
"parentId": "3000",
"weight": 1,
"name": "表单管理",
"path": "/gen/form",
"keepAlive": "1",
"sortOrder": 1,
"icon": "icon-record",
"permission": null,
"label": "表单管理",
"type": "0"
}
]
}
]
}
修改于 2022-11-10 12:28:14