绑定查询

简要描述:

  • 绑定查询接口

请求URL:

  • http://192.168.11.145/device-management/assets/device/device/page

请求方式:

  • GET

参数:

参数名 必选 类型 说明
page String 当前页
limit String 每页条数
projectId int 项目id

请求示例

localhost:9017/device-management/assets/device/device/page?page=1&limit=10&projectId=14

返回示例

{
    "msg": "success",
    "code": 0,
    "data": {
        "total": 8,
        "size": 10,
        "current": 1,
        "records": [
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-07-21 09:35:17",
                "updateTime": "2020-07-21 09:35:32",
                "createBy": 2,
                "updateBy": 2,
                "id": 99,
                "code": "nayun-001",
                "name": "车库防结露控制柜001",
                "deptId": 8,
                "parentId": 0,
                "groupId": 98,
                "productId": 122,
                "projectId": 16,
                "tenantId": 44,
                "adminState": null,
                "operatingState": null,
                "state": "1",
                "activeTime": "2020-07-21 09:35:32",
                "secretKey": "023ea7f27196443a9eed7a75b1d51557",
                "lastOnlineTime": "2020-07-21 09:35:32",
                "isAccessNet": null,
                "addressId": 75,
                "serviceId": 78,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "1",
                "productName": "车库防结露控制柜模型",
                "productKey": null,
                "projectName": "车库防结露",
                "groupName": "海尔云谷",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-14 09:48:06",
                "updateTime": "2020-06-12 14:19:54",
                "createBy": 108,
                "updateBy": 2,
                "id": 52,
                "code": "co2-002",
                "name": "CO2温湿度一体变送器001-145",
                "deptId": 1694,
                "parentId": 54,
                "groupId": 91,
                "productId": 50,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "1",
                "state": "1",
                "activeTime": "2020-06-12 02:20:18",
                "secretKey": "69fad72ef8a9444794d685d5d4eb4a74",
                "lastOnlineTime": "2020-06-12 14:19:54",
                "isAccessNet": null,
                "addressId": 43,
                "serviceId": 69,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "2",
                "productName": "CO2温湿度一体变送器模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区3号柜1",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-06-02 10:26:01",
                "updateTime": "2020-06-03 11:50:34",
                "createBy": 2,
                "updateBy": 2,
                "id": 80,
                "code": "gateway-01",
                "name": "星聚边缘网关-010",
                "deptId": 2,
                "parentId": 0,
                "groupId": 36,
                "productId": 111,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": null,
                "state": "1",
                "activeTime": "2020-06-03 11:49:40",
                "secretKey": "a8c01b4cc0f14fef932244ca093f5a4f",
                "lastOnlineTime": "2020-06-03 11:50:34",
                "isAccessNet": null,
                "addressId": 67,
                "serviceId": null,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "5",
                "productName": "星聚边缘网关",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区1号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-14 09:49:07",
                "updateTime": "2020-06-01 18:18:55",
                "createBy": 108,
                "updateBy": 2,
                "id": 53,
                "code": "tvoc-002",
                "name": "TVOC变送器001-145",
                "deptId": 1694,
                "parentId": 54,
                "groupId": 36,
                "productId": 51,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "0",
                "state": "1",
                "activeTime": "2020-06-01 18:18:55",
                "secretKey": "f2431aa88f4141b089f4d84a99955237",
                "lastOnlineTime": "2020-06-01 18:18:55",
                "isAccessNet": null,
                "addressId": 42,
                "serviceId": 69,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "2",
                "productName": "TVOC变送器模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区1号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-14 09:49:59",
                "updateTime": "2020-06-01 18:17:47",
                "createBy": 108,
                "updateBy": 2,
                "id": 54,
                "code": "tcp/ip-485-002",
                "name": "TCP/IP转485网关002-145",
                "deptId": 1694,
                "parentId": 0,
                "groupId": 90,
                "productId": 45,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "0",
                "state": "1",
                "activeTime": "2020-06-01 18:17:47",
                "secretKey": "f40a3253e70245078938a52509e18337",
                "lastOnlineTime": "2020-06-01 18:17:47",
                "isAccessNet": null,
                "addressId": 41,
                "serviceId": 69,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "3",
                "productName": "TCP/IP转485网关模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区2号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-13 17:30:38",
                "updateTime": "2020-05-28 11:13:45",
                "createBy": 108,
                "updateBy": 2,
                "id": 45,
                "code": "tcp/ip-485-001",
                "name": "TCP/IP转485网关001-40",
                "deptId": 1694,
                "parentId": 0,
                "groupId": 36,
                "productId": 45,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "0",
                "state": "1",
                "activeTime": "2020-05-28 11:12:46",
                "secretKey": "3b64993ce3c747ada118630878f1564c",
                "lastOnlineTime": "2020-05-28 11:13:45",
                "isAccessNet": null,
                "addressId": 32,
                "serviceId": 32,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "3",
                "productName": "TCP/IP转485网关模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区1号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-13 17:31:52",
                "updateTime": "2020-05-28 11:12:53",
                "createBy": 108,
                "updateBy": 2,
                "id": 47,
                "code": "kongtiao-001",
                "name": "空调控制器001-40",
                "deptId": 1694,
                "parentId": 45,
                "groupId": 36,
                "productId": 47,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "0",
                "state": "1",
                "activeTime": "2020-05-28 11:11:53",
                "secretKey": "50c387805ec049898cd25b437beb9653",
                "lastOnlineTime": "2020-05-28 11:12:53",
                "isAccessNet": null,
                "addressId": 34,
                "serviceId": 32,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "2",
                "productName": "空调控制器模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区1号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-05-13 17:31:17",
                "updateTime": "2020-05-28 11:12:50",
                "createBy": 108,
                "updateBy": 2,
                "id": 46,
                "code": "xinfeng-001",
                "name": "新风控制器001-40",
                "deptId": 1694,
                "parentId": 45,
                "groupId": 90,
                "productId": 46,
                "projectId": 10,
                "tenantId": 44,
                "adminState": null,
                "operatingState": "0",
                "state": "1",
                "activeTime": "2020-05-28 11:11:51",
                "secretKey": "e8280e02f878409594a5afe70e031719",
                "lastOnlineTime": "2020-05-28 11:12:50",
                "isAccessNet": null,
                "addressId": 35,
                "serviceId": 32,
                "location": null,
                "encryptionMode": "0",
                "nodeType": "2",
                "productName": "新风控制器模板",
                "productKey": null,
                "projectName": "华正物联",
                "groupName": "展区2号柜",
                "parentName": null,
                "addressName": null,
                "serviceName": null,
                "areaName": null,
                "osCodeId": null,
                "labels": null,
                "ids": null
            }
        ],
        "pages": 1
    }
}

返回参数说明

参数名 类型 说明
code int 状态码, 0:成功;其他:异常
message String 描述信息
data object 返回数据
total long 总数
size int 每页条数
current int 当前页
records list 返回数据
pages long 总页数
delFlag String 删除标记, 0: 正常 1: 删除
remark String 备注
createTime String 创建时间
updateTime String 更新时间
createBy int 创建人 id
updateBy int 修改人 id
id int 数据 id
code int 标识符
name string 设备名称
secretKey string 设备secret
lastOnlineTime string 最后上线时间
serviceId int 设备服务ID
productId int 产品ID
productName string 产品名称
productKey string 产品KEY
projectId int 项目ID
projectName string 项目名称
groupId int 分组ID
groupName string 分组名称
addressId int 地址id
addressName string 地址名称
encryptionMode string 加密方式
nodeType string 节点类型
state string 激活状态(active-激活 unactive-未激活)
activeTime string 激活时间

备注