角色列表-all
GET
/role请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {5}]
必需
id
integer
必需
code
string
必需
name
string
必需
enable
boolean
必需
permissionIds
array[integer]
必需
originUrl
string
必需
示例
{
"code": 0,
"message": "OK",
"data": [
{
"id": 3,
"code": "test",
"name": "Test",
"enable": true,
"permissionIds": [
21,
24,
25
]
},
{
"id": 1,
"code": "SUPER_ADMIN",
"name": "Super Admin",
"enable": true,
"permissionIds": []
},
{
"id": 2,
"code": "ROLE_QA",
"name": "Inspector",
"enable": true,
"permissionIds": [
21,
24,
25,
28,
29,
30,
31,
32,
33,
34
]
}
],
"originUrl": "/role/page?name=&pageNo=1&pageSize=10"
}
最后修改时间: 1 个月前