获取-侧边栏导航列表
GET
/menus获取-侧边栏导航列表
请求参数
Header 参数
Authorization
string
必需
token字符串 例如: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2NTc5Nzg4MjAsImV4cCI6MTY1ODA2NTIyMH0.Pr_IVEw-H4gXY8fNjJpG6YpUlRqCmlEgvfepkUYa3nk
示例值:
{{Pin_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array [object {5}]
响应数据
id
integer
导航id
authName
string
导航名字
path
string
导航路径
children
array [object {5}]
导航子集
order
integer
导航排序
meta
object
响应提示
msg
string
响应消息
status
integer
业务状态码
200成功, 其他失败
示例
成功示例
{
"data": [
{
"id": 125,
"authName": "用户管理",
"path": "users",
"children": [
{
"id": 110,
"authName": "用户列表",
"path": "users",
"children": [],
"order": null
}
],
"order": 1
},
{
"id": 103,
"authName": "权限管理",
"path": "rights",
"children": [
{
"id": 111,
"authName": "角色列表",
"path": "roles",
"children": [],
"order": null
},
{
"id": 112,
"authName": "权限列表",
"path": "rights",
"children": [],
"order": null
}
],
"order": 2
},
{
"id": 101,
"authName": "商品管理",
"path": "goods",
"children": [
{
"id": 104,
"authName": "商品列表",
"path": "goods",
"children": [],
"order": 1
},
{
"id": 115,
"authName": "分类参数",
"path": "params",
"children": [],
"order": 2
},
{
"id": 121,
"authName": "商品分类",
"path": "categories",
"children": [],
"order": 3
}
],
"order": 3
},
{
"id": 102,
"authName": "订单管理",
"path": "orders",
"children": [
{
"id": 107,
"authName": "订单列表",
"path": "orders",
"children": [],
"order": null
}
],
"order": 4
},
{
"id": 145,
"authName": "数据统计",
"path": "reports",
"children": [
{
"id": 146,
"authName": "数据报表",
"path": "reports",
"children": [],
"order": null
}
],
"order": 5
}
],
"meta": {
"msg": "获取菜单列表成功",
"status": 200
}
}
最后修改时间: 2 年前