文档
测试

分页获取实验室人员

GET
/api/onlinePerson/list/{limit}/{current}/{labId}

接口描述

获取一个实验室的所有人员以及在线人数

请求头

参数名
类型
描述
必填
limit
必填
currnt
必填
labId
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:200
必填
count
int
在线人数 示例:3
必填
page
object
分页数据
必填
totalCount
总记录数 示例:6
必填
pageSize
int
每页记录数 示例:5
必填
totalPage
int
总页数 示例:2
必填
currPage
int
当前页数 示例:1
必填
list
array
数据列表
必填
personId
string
人员Id 示例:1420204408591925249
必填
labId
string
实验室Id 示例:1419995965927014402
必填
personName
string
人员姓名 示例:Peter
必填
cardNum
object
卡号 示例:null
必填
personPicture
string
人员照片 示例:https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c
必填
status
int
在线状态 0离线 1在线 示例:1
必填
createTime
string
创建时间 示例:2021-07-28T10:08:11.788+08:00
必填
updateTime
string
更新时间 示例:2021-07-28T10:08:11.788+08:00
必填

Json实例

### 请求路径 `api/onlinePerson/list/5/1/1419995965927014402` ### 返回参数 ```json { "msg": "success", "code": 200, "count": 3, "page": { "totalCount": 6, "pageSize": 5, "totalPage": 2, "currPage": 1, "list": [ { "personId": "1420204408591925249", "labId": "1419995965927014402", "personName": "Peter", "cardNum": null, "personPicture": "https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c", "status": 1, "createTime": "2021-07-28T10:08:11.788+08:00", "updateTime": "2021-07-28T10:08:11.788+08:00" }, { "personId": "1420204417089585154", "labId": "1419995965927014402", "personName": "Peter", "cardNum": null, "personPicture": "https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c", "status": 1, "createTime": "2021-07-28T10:08:13.816+08:00", "updateTime": "2021-07-28T10:08:13.816+08:00" }, { "personId": "1420204421460049921", "labId": "1419995965927014402", "personName": "Peter", "cardNum": null, "personPicture": "https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c", "status": 1, "createTime": "2021-07-28T10:08:14.863+08:00", "updateTime": "2021-07-28T10:08:14.863+08:00" }, { "personId": "1420204412509405186", "labId": "1419995965927014402", "personName": "Peter", "cardNum": null, "personPicture": "https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c", "status": 0, "createTime": "2021-07-28T10:08:12.731+08:00", "updateTime": "2021-07-28T10:08:12.731+08:00" }, { "personId": "1420204414996627457", "labId": "1419995965927014402", "personName": "Peter", "cardNum": null, "personPicture": "https://pic2.zhimg.com/80/v2-3f73f9a06801f5f7405fcba09715edae_720w.jpg?source=1940ef5c", "status": 0, "createTime": "2021-07-28T10:08:13.316+08:00", "updateTime": "2021-07-28T10:08:13.316+08:00" } ] } } ```