1.1.1. 1 获取指定IoT数据树节点下IoT数据

基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/linked/query

API描述

获取指定IoT数据树节点下IoT数据

请求参数

Request Headers

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

Path Param

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

Request Body

application/json

{
    "channel": "hekr",
    "condition": [
        {
            "alias": "d1",
            "bosclass": "uoIotDataStructures",
            "subCondition": [
                {
                    "field": "_key",
                    "number": "false",
                    "operator": "==",
                    "value": "xxx"  ###IoT数据树节点key
                }
            ]
        },
        {
            "alias": "d2",
            "bosclass": "uoIotDatas",
            "nestOr": [],
            "subCondition": [
                {
                    "field": "name",
                    "operator": "like",
                    "value": ""
                }
            ]
        },
        {
            "alias": "u1",
            "bosclass": "uirIotStructureData",
            "from": "d1",
            "subCondition": [],
            "to": "d2",
            "type": "relationship"
        }
    ],
    "select": {
        "attribute": "d2.attribute",
        "code": "d2.code",
        "componentKey": "d2.componentKey",
        "iot": "d2.iot",
        "key": "d2._key",
        "leftCode": "d1.code",
        "leftKey": "d1._key",
        "leftName": "d1.name",
        "name": "d2.name",
        "relBosclass": "u1.bosclass",
        "type": "u1.type"
    },
    "sort": [
        {
            "order": "desc",
            "sortBy": "d2.code"
        }
    ]
}

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "178e7f79da7e487b97d6cb0b85e76a8d_join_testseteste",
                "type": null,
                "iot": null,
                "leftCode": "178e7f79da7e487b97d6cb0b85e76a8d_IOTOS_yingjiahulian",
                "leftKey": "db0f12424f1049c5922a6de6bb050a0c",
                "leftName": "智能终端",
                "name": "ddd",
                "attribute": {
                    "编码": "178e7f79da7e487b97d6cb0b85e76a8d_join_testseteste",
                    "名称": "ddd"
                },
                "componentKey": null,
                "key": "71d05f707652426a8425bdd77d61440b",
                "relBosclass": "uirIotStructureData"
            },
            {
                "code": "178e7f79da7e487b97d6cb0b85e76a8d_join_b71db65be2ec41c4a448bd1c180ef6cc",
                "type": null,
                "iot": null,
                "leftCode": "178e7f79da7e487b97d6cb0b85e76a8d_IOTOS_yingjiahulian",
                "leftKey": "db0f12424f1049c5922a6de6bb050a0c",
                "leftName": "智能终端",
                "name": "20210423105945-1",
                "attribute": {
                    "编码": "178e7f79da7e487b97d6cb0b85e76a8d_join_b71db65be2ec41c4a448bd1c180ef6cc",
                    "名称": "20210423105945-1"
                },
                "componentKey": null,
                "key": "d8b5f8f5ca57461c908a594ad2b7b8a6",
                "relBosclass": "uirIotStructureData"
            },
            {
                "code": "178e7f79da7e487b97d6cb0b85e76a8d_join_0f89e4aa6fad41409ad452a761feebd8",
                "type": null,
                "iot": null,
                "leftCode": "178e7f79da7e487b97d6cb0b85e76a8d_IOTOS_yingjiahulian",
                "leftKey": "db0f12424f1049c5922a6de6bb050a0c",
                "leftName": "智能终端",
                "name": "20210423105945-2",
                "attribute": {
                    "编码": "178e7f79da7e487b97d6cb0b85e76a8d_join_0f89e4aa6fad41409ad452a761feebd8",
                    "名称": "20210423105945-2"
                },
                "componentKey": null,
                "key": "9ef9dd9c905846749857cd60ec620a48",
                "relBosclass": "uirIotStructureData"
            }
        ],
        "count": 3
    }
}

1.1.2. 2 根据IoT数据key获取IoT数据信息

基本信息

Path

GET http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/entity/uoIotDatas/{iotDataKey}?noRelation=true

API描述

根据IoT数据key获取IoT数据信息

请求参数

Request Headers

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

Path Param

参数名称 介绍 举例
buildingId 建筑id abc
iotDataKey IoT数据key 71d05f707652426a8425bdd77d61440b

返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "attribute": {
            "编码": "178e7f79da7e487b97d6cb0b85e76a8d_join_testseteste",
            "名称": "ddd"
        },
        "bosclass": "uoIotDatas",
        "code": "178e7f79da7e487b97d6cb0b85e76a8d_join_testseteste",
        "currentUserPermissions": "rwdc",
        "gcreatetime": "1620983845443",
        "gtime": "1620983845443",
        "guser": "users/d1486ef581aa4d528f859adb79aa2dfa",
        "key": "71d05f707652426a8425bdd77d61440b",
        "name": "ddd"
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""