更新菜单
PATCH
/api/v1/system-manage/menus/{menu_id}请求参数
Path 参数
menu_id
integer
必需
Body 参数application/json
menuName
string
Menuname
菜单名称
menuType
enum<string>
菜单类型
枚举值:
12
routeName
string
Routename
路由名称
routePath
string
Routepath
路由路径
pathParam
Pathparam
路径参数
Any of
<= 200 字符
query
Query
路由参数列表
Any of
buttons
Buttons
按钮列表
Any of
buttonCode
string
Buttoncode
按钮编码
buttonDesc
string
Buttondesc
按钮描述
order
Order
菜单顺序
Any of
component
Component
路由组件
Any of
parentId
Parentid
父菜单ID
Any of
i18nKey
I18Nkey
用于国际化的展示文本,优先级高于title
Any of
icon
Icon
图标名称
Any of
iconType
图标类型
Any of
枚举值:
12
href
Href
外链
Any of
multiTab
Multitab
是否支持多页签
Any of
keepAlive
Keepalive
是否缓存
Any of
hideInMenu
Hideinmenu
是否在菜单隐藏
Any of
activeMenu
Activemenu
隐藏的路由需要激活的菜单
Any of
fixedIndexInTab
Fixedindexintab
固定在页签的序号
Any of
status
Status
状态
Any of
redirect
Redirect
重定向路径
Any of
props
Props
是否为首路由
Any of
constant
Constant
是否为公共路由
Any of
示例
{
"menuName": "string",
"menuType": "1",
"routeName": "string",
"routePath": "string",
"pathParam": "string",
"query": [
{}
],
"buttons": [
{
"buttonCode": "string",
"buttonDesc": "string"
}
],
"order": 0,
"component": "string",
"parentId": 0,
"i18nKey": "string",
"icon": "string",
"iconType": "1",
"href": "string",
"multiTab": true,
"keepAlive": true,
"hideInMenu": true,
"activeMenu": "string",
"fixedIndexInTab": 0,
"status": "string",
"redirect": "string",
"props": true,
"constant": true
}
示例代码
返回响应
Successful Response(200)
Validation Error(422)
Successful Response
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
No schema defined
示例
null
最后修改时间: 9 months ago