On this page
获取用户信息和权限菜单
接口URL
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
token | eyj...Nj | String | 是 | 用户token |
schoolid | 11 | Integer | 是 | 网校id |
成功响应示例
json5
{
"msg": "ok",
"data": {
"avatar": "",
"name": "ceshi1",
"introduction": "",
"roles": [
"admin"
],
"menus": [
{
"id": 3,
"access_id": 0,
"name": "Tool",
"hidden": false,
"title": "工具",
"children": [
{
"id": 14,
"access_id": 3,
"name": "Bbs",
"hidden": false,
"title": "小社群",
"children": []
},
// ...
]
}
// ...
],
"accesses": [
"Course,GET",
// ...
],
"isplatform": true
},
"code": 20000
}