查看角色列表
GET
/api/v1/system-manage/roles请求参数
Query 参数
current
integer
页码
size
integer
每页数量
roleName
string
角色名称
roleCode
string
角色编码
status
string
用户状态
示例代码
返回响应
成功(200)
Validation Error(422)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
msg
string
必需
data
object
必需
records
array [object {7}]
必需
total
integer
必需
current
integer
必需
size
integer
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"records": [
{
"status": "1",
"roleCode": "R_SUPER",
"roleName": "超级管理员",
"createTime": "2024-05-17 16:11:02",
"updateTime": "2024-05-17 16:11:02",
"roleHome": "home",
"id": 1
},
{
"status": "1",
"roleCode": "R_ADMIN",
"roleName": "管理员",
"createTime": "2024-05-17 16:11:02",
"updateTime": "2024-05-17 16:11:02",
"roleHome": "home",
"id": 2
},
{
"status": "1",
"roleCode": "R_USER",
"roleName": "普通用户",
"createTime": "2024-05-17 16:11:02",
"updateTime": "2024-05-17 16:11:02",
"roleHome": "home",
"id": 3
}
],
"total": 3,
"current": 1,
"size": 10
}
}
最后修改时间: 6 个月前