文档
测试

分页获取实验室列表

GET
/api/lab/list/{limit}/{current}

接口描述

获取实验室列表以及总人数

请求参数

参数名
类型
描述
必填
limit
每页数量
必填
current
当前页数
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:200
必填
count
string
所有实验室在线人数
必填
page
object
数据
必填
totalCount
int
总记录数 示例:6
必填
pageSize
int
每页记录数 示例:2
必填
totalPage
int
总页数 示例:3
必填
currPage
int
当前页数 示例:2
必填
list
array
实验室列表
必填
labId
string
实验室ID 示例:1419995965927014402
必填
labName
string
实验室名称 示例:实验室3
必填
enterDoorName
string
示例:入口3
必填
enterDoorIndexcode
string
示例:aaaaa
必填
outDoorName
string
示例:出口3
必填
outDoorIndexcode
string
示例:zzzzzz
必填
createTime
string
创建时间 示例:2021-07-27T20:19:55.193+08:00
必填
updateTime
string
更新时间 示例:2021-07-27T20:19:55.193+08:00
必填

Jso实例

### 请求路径 `api/lab/list/2/1` ### 返回参数 ```json { "msg": "success", "code": 200, "count": 4, "page": { "totalCount": 7, "pageSize": 2, "totalPage": 4, "currPage": 1, "list": [ { "labId": "1419995830358720514", "labName": "实验室1", "enterDoorName": "入口1", "enterDoorIndexcode": "aaaaa", "outDoorName": "出口1", "outDoorIndexcode": "zzzzzz", "createTime": "2021-07-27T20:19:22.862+08:00", "updateTime": "2021-07-27T20:19:22.862+08:00" }, { "labId": "1419995921500946433", "labName": "实验室2", "enterDoorName": "入口2", "enterDoorIndexcode": "aaaaa", "outDoorName": "出口2", "outDoorIndexcode": "zzzzzz", "createTime": "2021-07-27T20:19:44.600+08:00", "updateTime": "2021-07-27T20:19:44.600+08:00" } ] } } ```