添加菜单项
开发中
POST
http://localhost:8098/admin/menu/item
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
displayName
string
菜单项名
<= 128 字符
href
string
地址
<= 512 字符
target
enum<string> | enum<null>
打开方式
枚举值:
BLANKSELFPARENTTOP
默认值:
BLANK
parentMenuId
integer
父菜单 ID
parentMenuItemId
integer | null
父菜单项 ID
index
integer | null
菜单排序索引
>= 0
默认值:
0
示例
{
"displayName": "string",
"href": "string",
"target": "BLANK",
"parentMenuId": 0,
"parentMenuItemId": 0,
"index": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8098/admin/menu/item' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"errMsg": null,
"data": {
"menuItemId": 4,
"displayName": "报律所候铁合代",
"href": "culpa ullamco eiusmod dolor",
"target": "PARENT",
"parentMenuId": 3,
"parentMenuItemId": null,
"createTime": 1709481816060
}
}
修改于 2024-04-24 09:28:05