1. 获取指定文档的关联文档

1.1. 基本信息

Path

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

API描述

获取指定文档的关联文档

1.2. 请求参数

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": "uoDocDocument",
            "alias": "bld",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", // 文档key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "uoDocDocument",
            "alias": "doc",
            "subCondition": []
        },
        {
            "bosclass": "uirDocumentDocument",
            "alias": "ubd",
            "type": "relationship",
            "from": "bld",
            "to": "doc",
            "subCondition": []
        }
    ],
    "select": {
        "name": "doc.name",
        "key": "doc._key",
        "code": "doc.code",
        "type": "ubd.type",
        "revision": "doc.revision"
    }
}

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "I3htrf9NvMMg79PvlyMl", // 关联文档编码
                "name": "data", // 关联文档名称
                "type": "参考", // 文档与关联文档的关系名
                "key": "6685a738efda4b279f1968d52fe476d6", // 关联文档key
                "revision": "0" // 关联文档版本
            }
        ],
        "count": 1
    }
}

2. 获取指定文档的关联物项

2.1. 基本信息

Path

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

API描述

获取指定文档的关联物项

2.2. 请求参数

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": "uoDocDocument",
            "alias": "udd",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", // 文档key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "tags",
            "alias": "tags",
            "subCondition": []
        },
        {
            "bosclass": "irTagDocument",
            "alias": "itd",
            "type": "relationship",
            "from": "tags",
            "to": "udd",
            "subCondition": []
        }
    ],
    "select": {
        "name": "tags.name",
        "key": "tags._key",
        "attribute": "tags.basicAttribute",
        "code": "tags.code",
        "type": "itd.type"
    }
}

2.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "BB", // 物项编码
                "name": "BB", // 物项名称
                "attribute": { // 物项属性
                    "编码": "BB",
                    "名称": "BB"
                },
                "type": "厂家资料", // 文档与物项的关系名
                "key": "61affbe4aa094aedbb2bdc68f624636c" // 物项key
            }
        ],
        "count": 1
    }
}

3. 获取指定文档的关联自定义数据

3.1. 基本信息

Path

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

API描述

获取指定文档的关联自定义数据

3.2. 请求参数

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": "uoDocDocument",
            "alias": "udd",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", // 文档key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "uoCustomDatas",
            "alias": "ucd",
            "subCondition": []
        },
        {
            "bosclass": "uirCustomDataDocument",
            "alias": "ucdd",
            "type": "relationship",
            "from": "ucd",
            "to": "udd",
            "subCondition": []
        }
    ],
    "select": {
        "name": "ucd.name",
        "key": "ucd._key",
        "attribute": "ucd.attribute",
        "code": "ucd.code",
        "type": "ucdd.type"
    }
}

3.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "A1", // 自定义数据编码
                "name": "A1", // 自定义数据名称
                "attribute": {  // 自定义数据属性
                    "A1": "A1",
                    "A2": "A1",
                    "编码": "A1",
                    "名称": "A1"
                },
                "type": "设计文档",  // 文档与自定义数据的关系名
                "key": "a25ba28a990d4bfc838a851e1ed095e7"  // 自定义数据key
            }
        ],
        "count": 1
    }
}

4. 获取指定文档的关联模型数据

4.1. 基本信息

Path

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

API描述

获取指定文档的关联模型数据

4.2. 请求参数

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": "uoDocDocument",
            "alias": "udd",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", // 文档key
                    "number": "false"
                }
            ]
        },
        {
            "bosclass": "uoModelDocument",
            "alias": "umd",
            "subCondition": []
        },
        {
            "bosclass": "uirModelDocumentDocument",
            "alias": "umdd",
            "type": "relationship",
            "from": "umd",
            "to": "udd",
            "subCondition": []
        }
    ],
    "select": {
        "name": "umd.name",
        "key": "umd._key",
        "attribute": "umd.attribute",
        "code": "umd.code",
        "type": "umdd.type"
    }
}

4.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "code": "A1", // 模型数据编码
                "name": "A1", // 模型数据名称
                "attribute": {  // 模型数据属性
                    "A1": "A1",
                    "A2": "A1",
                    "编码": "A1",
                    "名称": "A1"
                },
                "type": "模型文档",  // 文档与模型数据的关系名
                "key": "a25ba28a990d4bfc838a851e1ed095e7"  // 模型数据key
            }
        ],
        "count": 1
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-11-04 16:43:29

results matching ""

    No results matching ""