Skip to content
关注公众号,获取新课通知

获取用户信息和权限菜单


接口URL

http://demonuxtapi.dishait.cn/admin/user/info

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校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
}