角色列表
开发中GET
/role/list最后修改时间: 2 年前
请求参数
Query 参数
page_size
string
必需
示例值:
5
page_num
string
必需
示例值:
1
keyword
string
必需
示例值:
1
Header 参数
Authorization
string
可选
示例值:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxMCwicm9sZSI6ImFkbWluIiwidXVpZCI6ImNkODU0NmEwMDc2NWU0MjZjM2ExMjY5YjM5OTA1OGY0IiwiaXNzIjoiZ2luYmxvZyIsImV4cCI6MTY2NjQ1NTU0Mn0.CuTebrbH1PBhXDbEXk_WgO-wV7LFtGqnMflIfN2WgUc
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
page_size
integer
必需
page_num
integer
必需
total
integer
必需
page_data
array [object {7}]
必需
示例
{
"code": 0,
"message": "OK",
"data": {
"page_size": 5,
"page_num": 1,
"total": 3,
"page_data": [
{
"id": 1,
"name": "管理员",
"label": "admin",
"created_at": "2022-10-20T21:24:28+08:00",
"is_disable": 0,
"resource_ids": [
1,
2,
3
],
"menu_ids": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
]
},
{
"id": 2,
"name": "用户",
"label": "user",
"created_at": "2022-10-20T21:25:07+08:00",
"is_disable": 0,
"resource_ids": [],
"menu_ids": [
1
]
},
{
"id": 3,
"name": "测试",
"label": "test",
"created_at": "2022-10-20T21:25:09+08:00",
"is_disable": 0,
"resource_ids": [],
"menu_ids": [
1
]
}
]
}
}
最后修改时间: 2 年前