添加菜单
POST
/myauth/web/addMenu
请求参数
Header 参数
token
string
必需
示例值:
ea3d9ceed86c4e738f9693ebc7efe6d1
Body 参数application/json
parentId
string
必需
level
integer
必需
sort
integer
必需
type
integer
必需
path
string
必需
title
string
必需
icon
null
必需
示例
{
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 2,
"type": 2,
"path": "/DataMaintenance/CardPassManage/asd",
"title": "测试管理",
"icon": null
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/addMenu' \
--header 'token: ea3d9ceed86c4e738f9693ebc7efe6d1' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": "d6321208-4980-46e3-b3d4-ec057009472c",
"level": 2,
"sort": 2,
"type": 2,
"path": "/DataMaintenance/CardPassManage/asd",
"title": "测试管理",
"icon": null
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
null
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "添加成功",
"sign": "",
"result": null,
"timestamp": 1646919918561
}
🔴500错误
修改于 2022-03-13 06:42:48