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

权限列表


接口URL

http://demonuxtapi.dishait.cn/platform/access?type=rule

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token

请求Query参数

参数名示例值参数类型是否必填参数描述
typeruleString类型:rule权限,menu菜单

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"total": 33,
		"items": [
			{
				"id": 2,
				"title": "课程",
				"access_id": 0,
				"content": "Course",
				"method": "GET",
				"ismenu": 1,
				"hidden": 0,
				"status": 1,
				"orderby": 10,
				"created_time": "2021-02-27T11:59:34.000Z",
				"updated_time": "2021-02-27T11:59:34.000Z",
				"children": [
					{
						"id": 9,
						"title": "图文",
						"access_id": 2,
						"content": "Media",
						"method": "GET",
						"ismenu": 1,
						"hidden": 0,
						"status": 1,
						"orderby": 10,
						"created_time": "2021-02-27T12:33:44.000Z",
						"updated_time": "2021-02-27T12:33:44.000Z",
						"children": []
					},
					// ...
				]
			},
			// ...
		]
	},
	"code": 20000
}

错误响应示例

json5
{
	"msg": "fail",
	"data": "Token 令牌不合法!"
}