1.1.1. 1 获取指定IoT数据的关联IoT点位信息

基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/linked/query?page=1&per_page=10

API描述

获取指定IoT数据的关联IoT点位信息

请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Query Param

参数名称 介绍 举例
page 页数 1
per_page 每页条数 10

Request Body

application/json

{
    "condition": [
        {
            "bosclass": "uoIotDatas",
            "alias": "id",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "21c38fe455fa4296b38e3ed42f5ab00f", // 此处填入具体的IoT数据key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "uoIotPoints",
            "alias": "ip",
            "subCondition": []
        },
        {
            "bosclass": "uirIotDataPoint",
            "alias": "idp",
            "type": "relationship",
            "from": "id",
            "to": "ip",
            "subCondition": []
        }
    ],
    "select": {   //此处填入需返回的文档属性,以对象别名.属性名的方式
        "key": "ip._key",   //点位key
        "code": "ip.code",  //点位编码
        "point": "ip.point"  //点位位置信息
    }
}

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "ddd",
                "key": "3ca09a63a58d44d1a485fed4271e5ddf",
                "point": {
                    "center": [
                        "-8.881784197001252E-13",
                        "-450.5",
                        3110
                    ],
                    "x": "M1608607924033",
                    "scale": 0.3,
                    "y": "M1608607924033",
                    "z": "M1608607924033",
                    "matrix": [
                        1,
                        0,
                        0,
                        0,
                        0,
                        1
                    ]
                }
            }
        ],
        "count": 1
    }
}

1.1.2. 2 根据IoT点位数据key查询点位信息

基本信息

Path

POST http://building-bos.rickricks.com/buildingservice/{buildingId}/iotPoint/getIotPointByKeys

API描述

根据IoT点位数据key查询点位信息

请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 multipart/form-data

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

form-data Param

参数名称 介绍 举例
keys IoT点位数据key集合 xx1,xx2

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": [
        {
            "id": "uoIotPoints/3ca09a63a58d44d1a485fed4271e5ddf",
            "key": "3ca09a63a58d44d1a485fed4271e5ddf",
            "rev": "_cV5z2DK---",
            "name": null,
            "bosclass": "uoIotPoints",
            "code": "ddd",
            "gacl": null,
            "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
            "gtime": 1619510126082,
            "type": "component",
            "component": {
                "component": [
                    "M1611135657858_20",
                    "M1611135657858_30"
                ],
                "modelKey": "M1611135657858"
            },
            "modelKey": [
                "M1612339912097",
                "M1611711017935",
                "ccccc"
            ],
            "assemblyKey": [
                "72c0ce08dcf64ef09623fcbbf59eb393",
                "d14531aea4cf4270868a0d217cd079a1"
            ],
            "modelDB": "g32de9f56a7547adb514b5039eb16f51",
            "point": {
                "center": [
                    "-8.881784197001252E-13",
                    "-450.5",
                    3110
                ],
                "x": "M1608607924033",
                "scale": 0.3,
                "y": "M1608607924033",
                "z": "M1608607924033",
                "matrix": [
                    1,
                    0,
                    0,
                    0,
                    0,
                    1,
                    0,
                    0,
                    0,
                    0,
                    1,
                    0,
                    0,
                    0,
                    0,
                    1
                ]
            },
            "assemblies": [
                {
                    "id": "documents/72c0ce08dcf64ef09623fcbbf59eb393",
                    "key": "72c0ce08dcf64ef09623fcbbf59eb393",
                    "rev": "_bmg_Wda---",
                    "bosclass": "uoAssemblyDocument",
                    "name": "烟感",
                    "code": "814fba2edb994b408e420f9ea317c006",
                    "revision": "0",
                    "creator": null,
                    "fileName": "烟感.zip",
                    "guser": "users/5172f6430c4b4597be9dccdefa8fe95d",
                    "size": 27476,
                    "createTime": null,
                    "gtime": "1608607927924",
                    "guid": "72c0ce08dcf64ef09623fcbbf59eb393",
                    "gcreatetime": "1608607927924",
                    "gcategory": "RVT",
                    "gupgradeKey": null,
                    "gupgrade": null,
                    "parseStatus": "3",
                    "modelKey": "M1608607927906",
                    "type": "model",
                    "thumbnail": "f49555ea0f664062b4201410a7436a64",
                    "assembly": null
                },
                {
                    "id": "documents/d14531aea4cf4270868a0d217cd079a1",
                    "key": "d14531aea4cf4270868a0d217cd079a1",
                    "rev": "_bmg_V1m---",
                    "bosclass": "uoAssemblyDocument",
                    "name": "门禁读卡器",
                    "code": "d244326c68c64cd3a9e191588773b2ae",
                    "revision": "0",
                    "creator": null,
                    "fileName": "门禁读卡器.zip",
                    "guser": "users/5172f6430c4b4597be9dccdefa8fe95d",
                    "size": 6547,
                    "createTime": null,
                    "gtime": "1608607926461",
                    "guid": "d14531aea4cf4270868a0d217cd079a1",
                    "gcreatetime": "1608607926461",
                    "gcategory": "RVT",
                    "gupgradeKey": null,
                    "gupgrade": null,
                    "parseStatus": "3",
                    "modelKey": "M1608607926428",
                    "type": "model",
                    "thumbnail": "6742f6191b1c4d609b920186535cd87d",
                    "assembly": null
                }
            ],
            "models": [
                {
                    "id": "documents/a5e1547fd2ac4ce59b64fe5d22b64bfc",
                    "key": "a5e1547fd2ac4ce59b64fe5d22b64bfc",
                    "rev": "_cM06cqa---",
                    "bosclass": "uoModelDocument",
                    "name": "RVT1-2020副中心-5.4.0.2",
                    "code": "M_o7FpTaw6X4281",
                    "revision": "1.0",
                    "creator": "AaronHuang",
                    "fileName": "RVT1-2020副中心-5.4.0.2.zip",
                    "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                    "size": 928625,
                    "createTime": "1612339911524",
                    "gtime": "1618896255689",
                    "guid": "a5e1547fd2ac4ce59b64fe5d22b64bfc",
                    "gcreatetime": "1612339912125",
                    "gcategory": "RVT",
                    "gupgradeKey": null,
                    "gupgrade": null,
                    "parseStatus": "3",
                    "modelKey": "M1612339912097",
                    "type": null,
                    "permissionGroup": []
                }
            ],
            "components": [
                {
                    "componentType": "",
                    "componentName": "object_80",
                    "componentKey": "M1611135657858_20"
                },
                {
                    "componentType": "",
                    "componentName": "object_71",
                    "componentKey": "M1611135657858_30"
                }
            ]
        }
    ]
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""