1.1.1. 1 获取IoT数据结构树根节点key

基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/query/uoIotDataStructures?noRelation=true

API描述

获取IoT数据结构树根节点key

请求参数

Request Headers

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

Path Param

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

Request Body

application/json

{
    "condition": [
        {
            "field": "level",
            "operator": "==",
            "value": "1", 
            "number": "true",
            "logic": ""
        }
    ],
    "select": [
        "_key"
    ]
}

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "_key": "12926f1b0d064770b9496d9c182ae0bb",
                "currentUserPermissions": "rwdc",
                "key": "12926f1b0d064770b9496d9c182ae0bb"
            }
        ],
        "count": 1
    }
}

1.1.2. 2 获取指定根节点的完整IoT数据结构树

基本信息

Path

GET http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/query/tree/uoIotDataStructures/{rootKey}?type=Child&depth=-1

API描述

获取指定根节点的完整IoT数据结构树

请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc

Path Param

参数名称 介绍 举例
buildingId 建筑id abc
rootKey 根节点key xxx

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "code": "IoTOS",
        "level": 1,
        "showCode": false,
        "leaf": false,
        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
        "gtime": "1620875124507",
        "children": [
            {
                "code": "yjhl",
                "level": 2,
                "description": "",
                "showCode": false,
                "leaf": false,
                "parentId": "12926f1b0d064770b9496d9c182ae0bb",
                "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                "gtime": "1620875157401",
                "children": [
                    {
                        "code": "349e931232314549b7c2f579f62d4e14_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063908",
                        "name": "烟感",
                        "iotDataChannel": "hekr",
                        "guid": "c936a0c4c44041d19a1b2e7a6f43df0b",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※c936a0c4c44041d19a1b2e7a6f43df0b",
                        "bosclass": "uoIotDataStructures",
                        "key": "c936a0c4c44041d19a1b2e7a6f43df0b",
                        "order": 6,
                        "gcreatetime": "1620875276531",
                        "longName": "IoT数据结构树根节点※yjhl※烟感"
                    },
                    {
                        "code": "3cfbffbfe1c84f42aaf6ac04d8182936_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063924",
                        "name": "空调机组",
                        "iotDataChannel": "hekr",
                        "guid": "49be1c4f23c740c9a122af748e53ffee",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※49be1c4f23c740c9a122af748e53ffee",
                        "bosclass": "uoIotDataStructures",
                        "key": "49be1c4f23c740c9a122af748e53ffee",
                        "order": 9,
                        "gcreatetime": "1620875276661",
                        "longName": "IoT数据结构树根节点※yjhl※空调机组"
                    },
                    {
                        "code": "b92aa4d7b0ec4f938823349126f88d24_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063940",
                        "name": "网关",
                        "iotDataChannel": "hekr",
                        "guid": "8cbbae2e7ad344d58df8fb363105ca71",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※8cbbae2e7ad344d58df8fb363105ca71",
                        "bosclass": "uoIotDataStructures",
                        "key": "8cbbae2e7ad344d58df8fb363105ca71",
                        "order": 12,
                        "gcreatetime": "1620875276788",
                        "longName": "IoT数据结构树根节点※yjhl※网关"
                    },
                    {
                        "code": "67531df72c5041de9c837404e0e61df3_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063956",
                        "name": "温度传感器-非标协议",
                        "iotDataChannel": "hekr",
                        "guid": "a86ebf782cac4e91952f150b0a01d8e2",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※a86ebf782cac4e91952f150b0a01d8e2",
                        "bosclass": "uoIotDataStructures",
                        "key": "a86ebf782cac4e91952f150b0a01d8e2",
                        "order": 15,
                        "gcreatetime": "1620875276917",
                        "longName": "IoT数据结构树根节点※yjhl※温度传感器-非标协议"
                    },
                    {
                        "code": "926a0502fcaa47d58c19800c33183012_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063929",
                        "name": "低压开关柜",
                        "iotDataChannel": "hekr",
                        "guid": "f09a080049bf426ba3bcb8f84b3e06a7",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※f09a080049bf426ba3bcb8f84b3e06a7",
                        "bosclass": "uoIotDataStructures",
                        "key": "f09a080049bf426ba3bcb8f84b3e06a7",
                        "order": 10,
                        "gcreatetime": "1620875276707",
                        "longName": "IoT数据结构树根节点※yjhl※低压开关柜"
                    },
                    {
                        "code": "72b120c98bd2496dbea2153d41087b35_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063945",
                        "name": "球泡灯-独立设备",
                        "iotDataChannel": "hekr",
                        "guid": "60afd5522f944319a173cafe5479db3e",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※60afd5522f944319a173cafe5479db3e",
                        "bosclass": "uoIotDataStructures",
                        "key": "60afd5522f944319a173cafe5479db3e",
                        "order": 13,
                        "gcreatetime": "1620875276822",
                        "longName": "IoT数据结构树根节点※yjhl※球泡灯-独立设备"
                    },
                    {
                        "code": "ab19177418ff4272b750acc1c826bad1_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": 1620977063865,
                        "name": "智能终端002",
                        "iotDataChannel": "hekr",
                        "guid": "e33aabc20e664847b7875f216ced1992",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※e33aabc20e664847b7875f216ced1992",
                        "bosclass": "uoIotDataStructures",
                        "_class": "com.bimwinner.building.model.IotDataStructure",
                        "key": "e33aabc20e664847b7875f216ced1992",
                        "order": 3,
                        "gcreatetime": "1620875276427",
                        "longName": "IoT数据结构树根节点※yjhl※智能终端002"
                    },
                    {
                        "code": "5728beda207141a185e1ec96246945c4_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063914",
                        "name": "智能电表",
                        "iotDataChannel": "hekr",
                        "guid": "504ac85ac20044dba40c6728bf492099",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※504ac85ac20044dba40c6728bf492099",
                        "bosclass": "uoIotDataStructures",
                        "key": "504ac85ac20044dba40c6728bf492099",
                        "order": 7,
                        "gcreatetime": "1620875276570",
                        "longName": "IoT数据结构树根节点※yjhl※智能电表"
                    },
                    {
                        "code": "a371ef08b7fe404aa5b38b570234f1e3_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063895",
                        "name": "摄像头",
                        "iotDataChannel": "hekr",
                        "guid": "b11459176e9e42bc8c4d02909491a25a",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※b11459176e9e42bc8c4d02909491a25a",
                        "bosclass": "uoIotDataStructures",
                        "key": "b11459176e9e42bc8c4d02909491a25a",
                        "order": 5,
                        "gcreatetime": "1620875276514",
                        "longName": "IoT数据结构树根节点※yjhl※摄像头"
                    },
                    {
                        "code": "83a8d978d27c497dbfadb2ba8599bbba_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063832",
                        "name": "电梯",
                        "iotDataChannel": "hekr",
                        "guid": "dc4aab2b416e46978258491a8fa45801",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※dc4aab2b416e46978258491a8fa45801",
                        "bosclass": "uoIotDataStructures",
                        "key": "dc4aab2b416e46978258491a8fa45801",
                        "order": 1,
                        "gcreatetime": "1620875276331",
                        "longName": "IoT数据结构树根节点※yjhl※电梯"
                    },
                    {
                        "code": "3e9ae831caf948d0aca199823a9e43bc_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063880",
                        "name": "加压机",
                        "iotDataChannel": "hekr",
                        "guid": "66026af068d948c4a36ddf7353ea20c8",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※66026af068d948c4a36ddf7353ea20c8",
                        "bosclass": "uoIotDataStructures",
                        "key": "66026af068d948c4a36ddf7353ea20c8",
                        "order": 4,
                        "gcreatetime": "1620875276472",
                        "longName": "IoT数据结构树根节点※yjhl※加压机"
                    },
                    {
                        "code": "b4c9b403bd484cfbafe91f2981183006_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063934",
                        "name": "开关柜网关",
                        "iotDataChannel": "hekr",
                        "guid": "f3eb537565f24eb3b644205f75ed2c0c",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※f3eb537565f24eb3b644205f75ed2c0c",
                        "bosclass": "uoIotDataStructures",
                        "key": "f3eb537565f24eb3b644205f75ed2c0c",
                        "order": 11,
                        "gcreatetime": "1620875276751",
                        "longName": "IoT数据结构树根节点※yjhl※开关柜网关"
                    },
                    {
                        "code": "019f72c7979a4e40b238024abdae504b_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063950",
                        "name": "温度传感器-子设备",
                        "iotDataChannel": "hekr",
                        "guid": "14f4a9342e4a4e2c9e2ecd1d34f518b3",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※14f4a9342e4a4e2c9e2ecd1d34f518b3",
                        "bosclass": "uoIotDataStructures",
                        "key": "14f4a9342e4a4e2c9e2ecd1d34f518b3",
                        "order": 14,
                        "gcreatetime": "1620875276865",
                        "longName": "IoT数据结构树根节点※yjhl※温度传感器-子设备"
                    },
                    {
                        "code": "178e7f79da7e487b97d6cb0b85e76a8d_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063850",
                        "name": "智能终端",
                        "iotDataChannel": "hekr",
                        "guid": "db0f12424f1049c5922a6de6bb050a0c",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※db0f12424f1049c5922a6de6bb050a0c",
                        "bosclass": "uoIotDataStructures",
                        "_class": "com.bimwinner.building.model.IotDataStructure",
                        "key": "db0f12424f1049c5922a6de6bb050a0c",
                        "order": 2,
                        "gcreatetime": "1620875276378",
                        "longName": "IoT数据结构树根节点※yjhl※智能终端"
                    },
                    {
                        "code": "fcd81acc89334023be6be7a51e182815_IOTOS_yingjiahulian",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "f6cfa83986fc4b11918749523bb31181",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620977063919",
                        "name": "排风机",
                        "iotDataChannel": "hekr",
                        "guid": "745147b010084a2392db7d655a19a0d3",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181※745147b010084a2392db7d655a19a0d3",
                        "bosclass": "uoIotDataStructures",
                        "key": "745147b010084a2392db7d655a19a0d3",
                        "order": 8,
                        "gcreatetime": "1620875276612",
                        "longName": "IoT数据结构树根节点※yjhl※排风机"
                    }
                ],
                "name": "yjhl",
                "iotDataChannel": "hekr",
                "guid": "f6cfa83986fc4b11918749523bb31181",
                "applyToChildNode": false,
                "longCode": "IoTOS※f6cfa83986fc4b11918749523bb31181",
                "bosclass": "uoIotDataStructures",
                "key": "f6cfa83986fc4b11918749523bb31181",
                "order": 1,
                "gcreatetime": "1620875157401",
                "longName": "IoT数据结构树根节点※yjhl"
            },
            {
                "code": "aaron",
                "level": 2,
                "description": "",
                "showCode": false,
                "leaf": false,
                "parentId": "12926f1b0d064770b9496d9c182ae0bb",
                "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                "gtime": "1620875166119",
                "children": [
                    {
                        "code": "69d59d63231940019f64e7b1f3ca8b76_IOTOS_AaronHuang",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "0d718b8b4a824449b3f317d62ca17c0f",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620875218740",
                        "name": "冰箱",
                        "iotDataChannel": "hekr",
                        "guid": "faee1e5f3d1f4ac384f4323d2b86d599",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※0d718b8b4a824449b3f317d62ca17c0f※faee1e5f3d1f4ac384f4323d2b86d599",
                        "bosclass": "uoIotDataStructures",
                        "key": "faee1e5f3d1f4ac384f4323d2b86d599",
                        "order": 1,
                        "gcreatetime": "1620875218740",
                        "longName": "IoT数据结构树根节点※aaron※冰箱"
                    },
                    {
                        "code": "046ed3f0102f4a559181c5368b356d80_IOTOS_AaronHuang",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "0d718b8b4a824449b3f317d62ca17c0f",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620875218795",
                        "name": "空调",
                        "iotDataChannel": "hekr",
                        "guid": "5c82854b86bc4b3784d0005386f6b006",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※0d718b8b4a824449b3f317d62ca17c0f※5c82854b86bc4b3784d0005386f6b006",
                        "bosclass": "uoIotDataStructures",
                        "key": "5c82854b86bc4b3784d0005386f6b006",
                        "order": 2,
                        "gcreatetime": "1620875218795",
                        "longName": "IoT数据结构树根节点※aaron※空调"
                    },
                    {
                        "code": "73cf035659504df6bcd5ee88b3edbdc2_IOTOS_AaronHuang",
                        "level": 3,
                        "description": null,
                        "showCode": false,
                        "leaf": true,
                        "parentId": "0d718b8b4a824449b3f317d62ca17c0f",
                        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
                        "gtime": "1620875218838",
                        "name": "摄像头",
                        "iotDataChannel": "hekr",
                        "guid": "4849d135440f4d57a57cb716e8540f6d",
                        "applyToChildNode": false,
                        "longCode": "IoTOS※0d718b8b4a824449b3f317d62ca17c0f※4849d135440f4d57a57cb716e8540f6d",
                        "bosclass": "uoIotDataStructures",
                        "key": "4849d135440f4d57a57cb716e8540f6d",
                        "order": 3,
                        "gcreatetime": "1620875218838",
                        "longName": "IoT数据结构树根节点※aaron※摄像头"
                    }
                ],
                "name": "aaron",
                "iotDataChannel": "hekr",
                "guid": "0d718b8b4a824449b3f317d62ca17c0f",
                "applyToChildNode": false,
                "longCode": "IoTOS※0d718b8b4a824449b3f317d62ca17c0f",
                "bosclass": "uoIotDataStructures",
                "key": "0d718b8b4a824449b3f317d62ca17c0f",
                "order": 2,
                "gcreatetime": "1620875166119",
                "longName": "IoT数据结构树根节点※aaron"
            }
        ],
        "name": "IoT数据结构树根节点",
        "iotDataChannel": "hekr",
        "guid": "12926f1b0d064770b9496d9c182ae0bb",
        "applyToChildNode": false,
        "longCode": "IoTOS",
        "bosclass": "uoIotDataStructures",
        "_class": "com.bimwinner.building.model.IotDataStructure",
        "key": "12926f1b0d064770b9496d9c182ae0bb",
        "longName": "IoT数据结构树根节点"
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""