获取菜单列表
GET
/myauth/web/getMenuListAll
请求参数
Header 参数
token
string
必需
示例值:
ea3d9ceed86c4e738f9693ebc7efe6d1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/myauth/web/getMenuListAll' \
--header 'token: ea3d9ceed86c4e738f9693ebc7efe6d1'
返回响应
🟢200成功
application/json
Body
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": 0,
"success": true,
"msg": "string",
"sign": "string",
"result": [
{
"id": "string",
"parentId": "string",
"level": 0,
"sort": 0,
"type": 0,
"path": "string",
"title": "string",
"icon": "string",
"children": [
{
"id": "string",
"parentId": "string",
"level": 0,
"sort": 0,
"type": 0,
"path": "string",
"title": "string",
"icon": "string",
"children": [
{
"id": "string",
"parentId": "string",
"level": 0,
"sort": 0,
"type": 0,
"path": "string",
"title": "string",
"icon": null,
"children": null
}
]
}
]
}
],
"timestamp": 0
}
🔴500错误
修改于 2022-03-13 06:42:26