1. 根据自定义建筑结构树树名称获取根节点key

1.1. 基本信息

Path

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

API描述

根据自定义建筑结构树树名称获取根节点key

1.2. 请求参数

Request Headers

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

Path Param

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

Request Body

application/json

{
    "condition": [
        {
            "field": "name",
            "operator": "==",
            "value": "{name}", // 自定义建筑结构树名称
            "number": "false",
            "logic": ""
        },
        {
            "field": "level",
            "operator": "==",
            "value": "1",
            "number": "true",
            "logic": "And"
        },
        {
            "field": "type",
            "operator": "==",
            "value": "userdefined",
            "number": "false",
            "logic": "And"
        }
    ],
    "select": [
        "name"
    ]
}

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "currentUserPermissions": "rwdc",
                "key": "5f5cb56c11cc45c49c30d7ac54d2b5f8", // 根节点key
                "name": "自定义建筑结构01"
            }
        ],
        "count": 1
    }
}

2. 根据自定义建筑结构树根节点key获取完整树结构

2.1. 基本信息

Path

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

API描述

根据自定义建筑结构树根节点key获取完整树结构

2.2. 请求参数

Request Headers

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

Path Param

参数名称 介绍 举例
buildingId 建筑id abc
rootKey 自定义建筑结构树根节点key 5f5cb56c11cc45c49c30d7ac54d2b5f8

2.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "code": "自定义建筑结构01",
        "level": 1,
        "sameNodeAttribute": false,
        "type": "userdefined",
        "showCode": false,
        "leaf": false,
        "guser": "users/a9eda0ae03064874b74268541e49c923",
        "gtime": 1574054409876,
        "children": [
            {
                "code": "子节点1",
                "level": 2,
                "sameNodeAttribute": false,
                "description": "",
                "type": "userdefined",
                "showCode": false,
                "leaf": true,
                "parentId": "uoBldStructures/5f5cb56c11cc45c49c30d7ac54d2b5f8",
                "guser": "users/a9eda0ae03064874b74268541e49c923",
                "gtime": "1574054940833",
                "permissionGroup": [],
                "name": "子节点1",
                "guid": "35300fdabd53446a8b69e527a7267091",
                "applyToChildNode": false,
                "longCode": "自定义建筑结构01※35300fdabd53446a8b69e527a7267091",
                "bosclass": "uoBldStructures",
                "key": "35300fdabd53446a8b69e527a7267091",
                "order": 1,
                "gcreatetime": "1574054940833",
                "longName": "自定义建筑结构01※子节点1"
            }
        ],
        "permissionGroup": [],
        "name": "自定义建筑结构01",
        "applyToChildNode": false,
        "longCode": "自定义建筑结构01",
        "bosclass": "uoBldStructures",
        "_class": "com.bimwinner.building.model.BldStructure",
        "key": "5f5cb56c11cc45c49c30d7ac54d2b5f8",
        "longName": "自定义建筑结构01"
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""