- 必须先读
- Ajax编程_V7.6大纲配套
- 数据可视化
- Vue基础
- Vue_大事件
- 黑马头条号
- 极客园_PC
- 极客园(黑马头条)_移动端
- 人资项目
- 小兔鲜电商
- 小程序基础
- 小程序项目
- layui_大事件
- 品优购电商后台
- 其他可用接口
获取-侧边栏导航列表
GET
/menus
请求参数
Header 参数
Authorization
string
必需
示例值:
{{Pin_ACCESS_TOKEN}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://vue-shop-api-t.itheima.net/api/private/v1/menus' \
--header 'Authorization: {{Pin_ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
data
array [object {5}]
响应数据
id
integer
导航id
authName
string
导航名字
path
string
导航路径
children
array [object {5}]
导航子集
order
integer
导航排序
meta
object
响应提示
msg
string
响应消息
status
integer
业务状态码
示例
{
"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
}
}
修改于 2022-07-20 08:35:38