获取菜单信息
GET
/system/menu/{menuId}请求参数
Path 参数
menuId
string
必需
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer | null
可选
返回状态码:返回200表示请求接口成功,非200表示请求接口失败
msg
string | null
返回消息
data
object (Menu)
返回数据
createBy
string | null
创建者
createTime
string | null
创建时间
updateBy
string | null
更新者
updateTime
string | null
更新时间
remark
string | null
备注
menuId
integer | null
菜单ID
menuName
string | null
菜单名称
parentId
integer | null
父菜单id
>= 0
sort
integer | null
显示顺序
>= 0
path
string | null
路由地址
component
string | null
组件路径
isFrame
string | null
可选
是否为外链(0是 1否)
menuType
string | null
必需
类型(M目录 C菜单 F按钮)
menuStatus
integer | null
可选
菜单状态(0显示 1隐藏)
visible
integer | null
可选
显示状态(0显示 1隐藏)
perms
string | null
权限字符串
icon
string | null
菜单图标
delFlag
boolean | null
可选
删除标志(0代表存在 1代表删除)
children
array[object (Menu) {19}] | null
子菜单
默认值:
new ArrayList<>()
示例
{
"code": 0,
"msg": "",
"data": {
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"menuId": 0,
"menuName": "",
"parentId": 0,
"sort": 0,
"path": "",
"component": "",
"isFrame": "",
"menuType": "",
"menuStatus": 0,
"visible": 0,
"perms": "",
"icon": "",
"delFlag": false,
"children": [
{
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"menuId": 0,
"menuName": "",
"parentId": 0,
"sort": 0,
"path": "",
"component": "",
"isFrame": "",
"menuType": "",
"menuStatus": 0,
"visible": 0,
"perms": "",
"icon": "",
"delFlag": false,
"children": [
{}
]
}
]
}
}
最后修改时间: 10 个月前