FastSoyAdmin
  1. menus
FastSoyAdmin
  • v1
    • auth
      • 登录
      • 刷新认证
      • 查看用户信息
      • 自定义后端错误
    • route
      • 查看常量路由(公共路由)
      • 查看用户路由菜单
      • 路由是否存在
    • system-manage
      • logs
        • 查看日志列表
        • 查看日志
        • 更新日志
        • 删除日志
        • 批量删除日志
      • apis
        • 查看API列表
        • 创建API
        • 批量删除API
        • 查看API
        • 更新API
        • 删除API
        • 查看API树
        • 刷新API列表
      • users
        • 查看用户列表
        • 创建用户
        • 查看用户
        • 更新用户
        • 删除用户
        • 批量删除用户
      • roles
        • 查看角色列表
        • 创建角色
        • 查看角色
        • 更新角色
        • 删除角色
        • 批量删除角色
        • 查看角色菜单
        • 更新角色菜单
        • 查看角色按钮
        • 更新角色按钮
        • 查看角色API
        • 更新角色API
      • menus
        • 查看用户菜单
          GET
        • 创建菜单
          POST
        • 查看菜单树
          GET
        • 查看菜单
          GET
        • 更新菜单
          PATCH
        • 删除菜单
          DELETE
        • 批量删除菜单
          DELETE
        • 查看一级菜单
          GET
        • 查看菜单按钮树
          GET
    • miniapp
      • vote
        • 查看投票列表
        • 创建投票
        • 删除投票
        • 更新投票
        • 指定多选项投票
        • 查看投票选项列表
        • 查看投票记录列表
      • auth
        • 查看投票列表 Copy
  1. menus

更新菜单

PATCH
/api/v1/system-manage/menus/{menu_id}
v1系统管理菜单管理

请求参数

Path 参数
menu_id
integer 
必需
Header 参数
Authorization
string 
可选
默认值:
Bearer {{token}}
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
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/v1/system-manage/menus/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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
}'

返回响应

🟢200Successful Response
application/json
Body
No schema defined
示例
null
🟠422Validation Error
上一页
查看菜单
下一页
删除菜单
Built with