- 必须先读
- Ajax编程_V7.6大纲配套
- 数据可视化
- Vue基础
- Vue_大事件
- 黑马头条号
- 极客园_PC
- 极客园(黑马头条)_移动端
- 人资项目
- 小兔鲜电商
- 小程序基础
- 小程序项目
- layui_大事件
- 品优购电商后台
- 其他可用接口
获取-侧边栏数据
GET
/my/menus
请求参数
Header 参数
Authorization
string
必需
示例值:
{{Vue2_BigEvent_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://big-event-vue-api-t.itheima.net/my/menus' \
--header 'Authorization: {{Vue2_BigEvent_ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
code
integer
业务状态码
message
string
响应消息
data
array [object {4}]
响应数据
indexPath
string
路由路径
title
string
导航标题
icon
string
导航图标
children
array [object {3}]
子菜单数据
示例
{
"code": 0,
"message": "获取左侧菜单成功!",
"data": [
{
"indexPath": "/home",
"title": "首页",
"icon": "el-icon-s-home",
"children": null
},
{
"indexPath": "2",
"title": "文章管理",
"icon": "el-icon-s-order",
"children": [
{
"indexPath": "/art-cate",
"title": "文章分类",
"icon": "el-icon-s-data"
},
{
"indexPath": "/art-list",
"title": "文章列表",
"icon": "el-icon-document-copy"
}
]
},
{
"indexPath": "3",
"title": "个人中心",
"icon": "el-icon-user-solid",
"children": [
{
"indexPath": "/user-info",
"title": "基本资料",
"icon": "el-icon-s-operation"
},
{
"indexPath": "/user-avatar",
"title": "更换头像",
"icon": "el-icon-camera"
},
{
"indexPath": "/user-pwd",
"title": "重置密码",
"icon": "el-icon-key"
}
]
}
]
}
修改于 2022-07-10 01:10:46