查询所有用户
GET
/users请求参数
Query 参数
page
integer
页码数,默认第1页
limit
integer
可选
每页条数,默认每页10条
user_name
string
按用户名查询
nick_name
string
按真实姓名查询
user_phone
string
按用户电话查询
state
integer
按状态查询
start
string
按时间查询
end
string
按时间查询
order
string
可选
ascend:升序,descend:降序(默认)
sort
string
可选
排序条件:默认按创建时间排序
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{
"code": 20000,
"message": "查询成功",
"data": {
"records": [
{
"user_email": "wdfew@qq.com",
"create_time": "2023-12-25T10:56:51",
"gender": 1,
"user_name": "孙郎",
"position_name": "无车间职位",
"dept_name": "无归属部门",
"role_name": "普通人员",
"password": "$argon2i$v=19$m=65536,t=10,p=1$kD5dm7cm7zHYNwaT8/RRsw$O9tZgDcmKAe1ObAgud56iPi9/WyjFac/+MvePQeBqWs",
"workshop_name": "无归属车间",
"user_id": 41,
"nick_name": "钱昭",
"user_phone": "15478563258",
"state": 1,
"by_user": "system"
}
],
"total": 1,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 1
}
}
最后修改时间: 7 个月前