获取菜单项
开发中
GET
http://localhost:8098/admin/menu/item/{menuId}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
menuId
integer
菜单 ID
Query 参数
tree
boolean
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8098/admin/menu/item/?tree'
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
null
必需
data
array [object {10}]
必需
menuItemId
integer
菜单项 ID
menuId
integer
菜单 ID
displayName
string
菜单名
href
string | null
地址
target
enum<string>
打开方式
枚举值:
BLANKSELFPARENTTOP
默认值:
BLANK
parentMenuItemId
integer | null
父菜单项 ID
children
array [object]
子菜单数组
>= 0 items
index
integer
菜单排序索引
createTime
integer
创建时间戳
lastModifyTime
null
最后修改时间戳
示例
{
"code": 200,
"errMsg": null,
"data": [
{
"menuItemId": 1,
"menuId": 1,
"displayName": "接作术",
"href": "in consequat nostrud nisi quis",
"target": "TOP",
"parentMenuItemId": null,
"children": [
{
"menuItemId": 2,
"menuId": 1,
"displayName": "头认资族",
"href": null,
"target": "PARENT",
"parentMenuItemId": 1,
"children": [],
"createTime": 1709536050119,
"lastModifyTime": null
}
],
"createTime": 1709536045523,
"lastModifyTime": null
}
]
}
修改于 2024-03-04 07:11:38