更新权限菜单
开发中
POST
/sys/perm/menu/update
sys/menu
请求参数
Header 参数
Authorization
string
必需
默认值:
{{TOKEN}}
Body 参数application/json
id
integer <int64>
必需
parentId
integer <int64>
必需
name
string
必需
router
string
必需
perms
array[string]
必需
type
integer <int64>
必需
icon
string
必需
orderNum
integer <int64>
必需
viewPath
string
必需
isShow
integer <int64>
必需
activeRouter
string
必需
示例
{
"id": 0,
"parentId": 0,
"name": "string",
"router": "string",
"perms": [
"string"
],
"type": 0,
"icon": "string",
"orderNum": 0,
"viewPath": "string",
"isShow": 0,
"activeRouter": "string"
}
示例代码
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://127.0.0.1:8001/sys/perm/menu/update' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"parentId": 0,
"name": "string",
"router": "string",
"perms": [
"string"
],
"type": 0,
"icon": "string",
"orderNum": 0,
"viewPath": "string",
"isShow": 0,
"activeRouter": "string"
}'
返回响应
🟢200A successful response.
application/json
Body
No schema defined
示例
null
修改于 2022-08-27 12:18:15