分页

简要描述:

  • 分页

请求URL:

  • http://192.168.11.145/safe/monitor/page

请求方式:

  • Get

参数:

参数名 必选 类型 说明 长度
page int 页码 11
limit int 每页条数 11
perimeterId Integer 周界 ID 11
name String 名称 50

请求示例

http://192.168.11.145/safe/monitor/page?page=1&limit=10&name=name&perimeterId=1

返回示例

{
    "msg": "success",
    "code": 0,
    "data": {
        "total": 1,
        "size": 10,
        "current": 1,
        "records": [
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-09-27 11:22:49",
                "updateTime": "2020-09-27 13:22:31",
                "createBy": 0,
                "updateBy": 0,
                "id": 1,
                "tenantId": null,
                "perimeterId": 2,
                "seq": 2,
                "name": "2name",
                "createName": null,
                "monitorDeviceList": [
                    {
                        "delFlag": "0",
                        "remark": null,
                        "createTime": "2020-09-27 11:26:09",
                        "updateTime": "2020-09-27 11:26:09",
                        "createBy": 0,
                        "updateBy": null,
                        "id": 3,
                        "tenantId": null,
                        "monitorId": 1,
                        "deviceId": 2,
                        "deviceName": "2",
                        "deviceCode": "2",
                        "productId": 2,
                        "productName": "2",
                        "createName": null
                    },
                    {
                        "delFlag": "0",
                        "remark": null,
                        "createTime": "2020-09-27 11:26:09",
                        "updateTime": "2020-09-27 11:26:09",
                        "createBy": 0,
                        "updateBy": null,
                        "id": 4,
                        "tenantId": null,
                        "monitorId": 1,
                        "deviceId": 2,
                        "deviceName": "2",
                        "deviceCode": "2",
                        "productId": 2,
                        "productName": "2",
                        "createName": null
                    }
                ],
                "deviceNames": "2,2"
            }
        ],
        "pages": 1
    }
}

返回参数说明

参数名 类型 说明
code int 状态码, 0:成功;其他:异常
message String 描述信息
data object 返回数据
id Integer id
tenantId Integer 租户 ID
perimeterId Integer 周界 ID
seq Integer 序号
name String 名称
createName String 创建人
monitorDeviceList List<MonitorDevice> 监控点设备列表
monitorId int 监控点 id
deviceId int 设备 id
deviceName Str 设备名称
deviceCode String 设备编码
productId int 产品 id
productName String 产品名称
deviceNames String 设备名称

备注