用户列表
GET
/api/user/list请求参数
Query 参数
keyword
string
搜索关键词
示例值:
小红
channel
string
可选
客户端类型: [1=微信小程序, 2=微信公众号, 3=手机H5;4=电脑PC, 5=苹果APP, 6=安卓APP]
示例值:
1
startTime
string
开始日期
示例值:
2022-09-08 00:00:00
endTime
string
结束日期
示例值:
2022-09-09 00:00:00
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
count
integer
必需
pageNo
integer
必需
pageSize
integer
必需
lists
array [object {12}]
必需
示例
{
"code": 200,
"msg": "成功",
"data": {
"count": 3,
"pageNo": 1,
"pageSize": 20,
"lists": [
{
"id": 14,
"sn": 41132062,
"avatar": "",
"realName": "",
"nickname": "用户41132062",
"username": "u41132062",
"mobile": "",
"sex": "未知",
"channel": "微信小程序",
"lastLoginIp": "172.20.112.1",
"lastLoginTime": "2022-09-08 09:55:02",
"createTime": "2022-09-08 09:55:02"
},
{
"id": 10,
"sn": 15836381,
"avatar": "",
"realName": "",
"nickname": "用户15836381",
"username": "a1234",
"mobile": "",
"sex": "未知",
"channel": "微信公众号",
"lastLoginIp": "",
"lastLoginTime": "1970-01-01 08:00:00",
"createTime": "2022-09-05 17:40:44"
},
{
"id": 1,
"sn": 98758469,
"avatar": "",
"realName": "红红",
"nickname": "红花",
"username": "u98758469",
"mobile": "15627119239",
"sex": "未知",
"channel": "微信小程序",
"lastLoginIp": "172.16.1.7",
"lastLoginTime": "2022-09-05 17:35:19",
"createTime": "2022-09-05 16:10:02"
}
]
}
}
最后修改时间: 2 年前