- v1
- auth
- route
- system-manage
- miniapp
查看角色列表
GET
/api/v1/system-manage/roles
v1系统管理角色管理
请求参数
Query 参数
current
integer
页码
示例值:
1
size
integer
每页数量
示例值:
10
roleName
string
角色名称
roleCode
string
角色编码
statusType
string
用户状态
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/system-manage/roles?current=1&size=10' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
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
}
}
🟠422Validation Error
修改于 2024-12-11 02:45:05