1. 获取文件夹树

1.1. 基本信息

Path

POST http://building-bos.rickricks.com/buildingservice/{buildingId}/folders/tree

API描述

获取文件夹树

1.2. 请求参数

Request Headers

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

Path Param

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

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": [
        {
            "id": "folders/o2f465756a02405cb8d9c77afee46772_doc",
            "key": "o2f465756a02405cb8d9c77afee46772_doc",
            "rev": "_ZqRA29y--_",
            "name": "文档管理根节点",
            "longCode": "o2f465756a02405cb8d9c77afee46772_doc",
            "longName": "文档管理根节点",
            "level": 1,
            "leaf": false,
            "parentId": null,
            "bosclass": "uoDocFolder",
            "gacl": null,
            "guser": "users/5d52d9995a81411c8e6b849cacf456af",
            "gtime": 1574918767559,
            "code": "o2f465756a02405cb8d9c77afee46772_doc",
            "size": 212676,
            "guid": "o2f465756a02405cb8d9c77afee46772_doc",
            "gcreatetime": "1574756588041",
            "order": 0,
            "permissionGroup": [
                {
                    "isDownload": false,
                    "roleKey": "3a1b52b34ee741be95ff53e48f9439a6",
                    "applyToChildNodes": false
                }
            ],
            "downloadable": false, // 是否允许用户下载目录下文档
            "children": [
                {
                    "id": "folders/46a0138e8bbe4dea8b647d9cca7596d2",
                    "key": "46a0138e8bbe4dea8b647d9cca7596d2",
                    "rev": "_ZqSUTeK--_",
                    "name": "ZZZ",
                    "longCode": "o2f465756a02405cb8d9c77afee46772_doc※46a0138e8bbe4dea8b647d9cca7596d2",
                    "longName": "文档管理根节点※ZZZ",
                    "level": 2,
                    "leaf": true,
                    "parentId": "o2f465756a02405cb8d9c77afee46772_doc",
                    "bosclass": "uoDocFolder",
                    "gacl": null,
                    "guser": "users/5d52d9995a81411c8e6b849cacf456af",
                    "gtime": 1575264577249,
                    "code": "0GKZgGt1A9Ki860md8KIyH",
                    "size": 0,
                    "guid": "46a0138e8bbe4dea8b647d9cca7596d2",
                    "gcreatetime": "1575264577249",
                    "order": 2,
                    "permissionGroup": [
                        {
                            "isDownload": true,
                            "roleKey": "3a1b52b34ee741be95ff53e48f9439a6",
                            "applyToChildNodes": false
                        }
                    ],
                    "downloadable": true,
                    "children": []
                },
                {
                    "id": "folders/12ed0babae554c6280ccbc60d3612d74",
                    "key": "12ed0babae554c6280ccbc60d3612d74",
                    "rev": "_Zp_3O6S--_",
                    "name": "6219",
                    "longCode": "o2f465756a02405cb8d9c77afee46772_doc※12ed0babae554c6280ccbc60d3612d74",
                    "longName": "文档管理根节点※6219",
                    "level": 2,
                    "leaf": true,
                    "parentId": "o2f465756a02405cb8d9c77afee46772_doc",
                    "bosclass": "uoDocFolder",
                    "gacl": null,
                    "guser": "users/5d52d9995a81411c8e6b849cacf456af",
                    "gtime": 1574918767554,
                    "code": "0el8ZPAJrWPOSiVY8Eside",
                    "size": 64479,
                    "guid": "12ed0babae554c6280ccbc60d3612d74",
                    "gcreatetime": "1574912240973",
                    "order": 1,
                    "permissionGroup": [
                        {
                            "isDownload": false,
                            "roleKey": "3a1b52b34ee741be95ff53e48f9439a6",
                            "applyToChildNodes": false
                        }
                    ],
                    "downloadable": false,
                    "children": []
                }
            ]
        }
    ]
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""