用户列表
GET
/system/user/list请求参数
Query 参数
createBy
string
创建者
createTime
string
创建时间
updateBy
string
更新者
updateTime
string
更新时间
remark
string
备注
userId
integer
用户id
userName
string
用户名
nickName
string
用户昵称
password
string
密码
sex
integer
性别
userStatus
integer
可选
用户状态 0 启用 1 禁用
email
string
邮箱
phone
string
手机号码
deptId
integer
关联部门id
deptName
string
关联部门名称
avatar
string
用户头像
dept.createBy
string
创建者
dept.createTime
string
创建时间
dept.updateBy
string
更新者
dept.updateTime
string
更新时间
dept.remark
string
备注
dept.deptId
integer
部门ID
dept.parentId
integer
父部门ID
dept.ancestors
string
祖级列表
dept.deptName
string
部门名称
dept.sort
integer
显示顺序
dept.leader
string
负责人
dept.phone
string
联系电话
dept.email
string
邮箱
dept.deptStatus
integer
可选
部门状态:0正常,1停用
dept.delFlag
boolean
可选
删除标志(0代表存在 1代表删除)
dept.children[0].createBy
string
创建者
dept.children[0].createTime
string
创建时间
dept.children[0].updateBy
string
更新者
dept.children[0].updateTime
string
更新时间
dept.children[0].remark
string
备注
dept.children[0].deptId
integer
部门ID
dept.children[0].parentId
integer
父部门ID
dept.children[0].ancestors
string
祖级列表
dept.children[0].deptName
string
部门名称
dept.children[0].sort
integer
显示顺序
dept.children[0].leader
string
负责人
dept.children[0].phone
string
联系电话
dept.children[0].email
string
邮箱
dept.children[0].deptStatus
integer
可选
部门状态:0正常,1停用
dept.children[0].delFlag
boolean
可选
删除标志(0代表存在 1代表删除)
dept.children[0].children[0].key
可选
roles[0].createBy
string
创建者
roles[0].createTime
string
创建时间
roles[0].updateBy
string
更新者
roles[0].updateTime
string
更新时间
roles[0].remark
string
备注
roles[0].roleId
integer
角色ID
roles[0].roleName
string
角色名称
roles[0].roleKey
string
权限字符
roles[0].sort
integer
角色排序
roles[0].roleStatus
integer
可选
角色状态(0正常 1停用)
roles[0].menuIds
array[string]
关联菜单id集合
roles[0].delFlag
boolean
可选
删除标志(0代表存在 1代表删除)
roleIds
string
角色组
delFlag
boolean
可选
删除标志(0代表存在 1代表删除)
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer | null
可选
返回状态码:返回200表示请求接口成功,非200表示请求接口失败
msg
string | null
返回消息
data
object (IPage«User»)
返回数据
records
array[object (User) {20}] | null
查询数据列表
默认值:
Collections.emptyList()
total
integer | null
总数
默认值:
0
size
integer | null
可选
每页显示条数,默认 10
默认值:
10
current
integer | null
当前页
默认值:
1
orders
array[object (OrderItem) {2}] | null
排序字段信息
默认值:
new ArrayList<>()
optimizeCountSql
boolean | null
可选
自动优化 COUNT SQL
默认值:
true
searchCount
boolean | null
可选
是否进行 count 查询
默认值:
true
optimizeJoinOfCountSql
boolean | null
可选
{@link #optimizeJoinOfCountSql()}
默认值:
true
maxLimit
integer | null
单页分页条数限制
countId
string | null
countId
pages
integer | null
可选
示例
{
"code": 0,
"msg": "",
"data": {
"records": [
{
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"userId": 0,
"userName": "",
"nickName": "",
"password": "",
"sex": 0,
"userStatus": 0,
"email": "",
"phone": "",
"deptId": 0,
"deptName": "",
"avatar": "",
"dept": {
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"deptId": 0,
"parentId": 0,
"ancestors": "",
"deptName": "",
"sort": 0,
"leader": "",
"phone": "",
"email": "",
"deptStatus": 0,
"delFlag": false,
"children": [
{
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"deptId": 0,
"parentId": 0,
"ancestors": "",
"deptName": "",
"sort": 0,
"leader": "",
"phone": "",
"email": "",
"deptStatus": 0,
"delFlag": false,
"children": [
{}
]
}
]
},
"roles": [
{
"createBy": "",
"createTime": "",
"updateBy": "",
"updateTime": "",
"remark": "",
"roleId": 0,
"roleName": "",
"roleKey": "",
"sort": 0,
"roleStatus": 0,
"menuIds": [
0
],
"delFlag": false,
"admin": false
}
],
"roleIds": [
0
],
"delFlag": false,
"admin": false
}
],
"total": 0,
"size": 0,
"current": 0,
"orders": [
{
"column": "",
"asc": false
}
],
"optimizeCountSql": false,
"searchCount": false,
"optimizeJoinOfCountSql": false,
"maxLimit": 0,
"countId": "",
"pages": 0
}
}
最后修改时间: 10 个月前