- 01.认证中心
- 02.用户接口
- 03.角色接口
- 04.菜单接口
- 05.组织机构接口
- 06.字典接口
- 07.字典数据接口
- 08.文件接口
- 10.系统配置
- 12.通知公告接口
- 13.日志接口
- 14.企业管理接口
- TableController
- 代办流程
- 执行监听器
- 流程启动
- 已办任务
- 流程维护
- ChartController
- 单信息接口
- 企业数据接口
- 企业信息接口
- 机架规模接口
- 项目数据提交记录接口
- 企业项目信息表接口
- 单字段信息接口
- 附加表接口
- 架构管理接口
- 流程表单信息接口
- ProjectOperateController
- ProjectFileController
修改菜单
PUT
/api/v1/menus/{id}
请求参数
Body 参数application/json
id
integer <int64>
菜单ID
parentId
integer <int64>
父菜单ID
name
string
菜单名称
type
enum<string>
可选
枚举值:
NULLMENUCATALOGEXTLINKBUTTON
routeName
string
路由名称
routePath
string
路由路径
component
string
可选
perm
string
权限标识
visible
integer
可选
>= 0<= 1
sort
integer
可选
icon
string
菜单图标
redirect
string
跳转路径
keepAlive
integer
可选
示例值:
1
alwaysShow
integer
可选
示例值:
1
params
array[object (KeyValue) {2}]
路由参数
key
string
选项的值
value
string
选项的标签
application
integer
可选
示例
{
"id": 0,
"parentId": 0,
"name": "string",
"type": "NULL",
"routeName": "string",
"routePath": "string",
"component": "string",
"perm": "string",
"visible": 0,
"sort": 0,
"icon": "string",
"redirect": "string",
"keepAlive": 1,
"alwaysShow": 1,
"params": [
{
"key": "string",
"value": "string"
}
],
"application": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/menus/' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"parentId": 0,
"name": "string",
"type": "NULL",
"routeName": "string",
"routePath": "string",
"component": "string",
"perm": "string",
"visible": 0,
"sort": 0,
"icon": "string",
"redirect": "string",
"keepAlive": 1,
"alwaysShow": 1,
"params": [
{
"key": "string",
"value": "string"
}
],
"application": 0
}'
返回响应
🟢200成功
application/json
Body
code
string
可选
data
null
可选
msg
string
可选
示例
{
"code": "",
"data": null,
"msg": ""
}