- v1
- auth
- route
- system-manage
- miniapp
查看用户列表
POST
/api/v1/system-manage/users/all/
v1系统管理用户管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
Body 参数application/json
current
integer
当前页
size
integer
分页大小
userName
string
用户名
userGender
string
性别
nickName
string
昵称
userPhone
string
手机号
userEmail
string
邮箱
statusType
string
状态
byUserRoleCodeList
array[string]
角色代码列表
示例
{
"current": null,
"size": null,
"userName": null,
"userGender": null,
"nickName": null,
"userPhone": null,
"userEmail": null,
"statusType": null,
"byUserRoleCodeList": [
"R_SUPER",
"R_USER"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system-manage/users/all/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"current": null,
"size": null,
"userName": null,
"userGender": null,
"nickName": null,
"userPhone": null,
"userEmail": null,
"statusType": null,
"byUserRoleCodeList": [
"R_SUPER",
"R_USER"
]
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
records
array [object {11}]
必需
total
integer
必需
current
integer
必需
size
integer
必需
示例
{
"code": "0000",
"msg": "OK",
"data": {
"records": [
{
"userPhone": null,
"status": "1",
"userName": "Soybean",
"nickName": "Soybean",
"lastLogin": null,
"createTime": "2024-05-17 16:11:02",
"updateTime": "2024-05-17 16:11:02",
"userGender": "3",
"userEmail": "admin@admin.com",
"id": 1,
"userRoles": [
"R_SUPER"
]
},
{
"userPhone": null,
"status": "1",
"userName": "Super",
"nickName": "Super",
"lastLogin": null,
"createTime": "2024-05-17 16:11:02",
"updateTime": "2024-05-17 16:11:02",
"userGender": "3",
"userEmail": "admin1@admin.com",
"id": 2,
"userRoles": [
"R_SUPER"
]
},
{
"userPhone": null,
"status": "1",
"userName": "Admin",
"nickName": "Admin",
"lastLogin": null,
"createTime": "2024-05-17 16:11:03",
"updateTime": "2024-05-17 16:11:03",
"userGender": "3",
"userEmail": "admin2@admin.com",
"id": 3,
"userRoles": [
"R_ADMIN"
]
},
{
"userPhone": null,
"status": "1",
"userName": "User",
"nickName": "User",
"lastLogin": null,
"createTime": "2024-05-17 16:11:03",
"updateTime": "2024-05-17 16:11:03",
"userGender": "3",
"userEmail": "user@user.com",
"id": 4,
"userRoles": [
"R_USER"
]
}
],
"total": 4,
"current": 1,
"size": 10
}
}
🟠422Validation Error
修改于 2024-12-30 08:09:50