获取文档树

1、获取文档树

简要描述:

  • 获取文档树

请求URL:

  • http://192.168.2.32:8080/ops/itsm/document/getFolderTree

请求方式:

  • POST

参数:

参数名 必选 类型 说明
userId string 用户id

参数示例

{
    userId: '2c6ba2e7300943319d7a0fd83fd1e586'
}

返回示例

 {
  "errorCode": 0,
  "message": "成功",
  "time": 1637898595714,
  "responseBody": {
    "documentCount": 2,
    "folderAuthority": {
      "batchDownload": true,
      "preview": true,
      "deleteFile": true,
      "download": true,
      "deleteFolder": true,
      "edit": true,
      "upload": true,
      "replace": true,
      "create": true,
      "editAuthority": true,
      "history": true,
      "look": true
    },
    "orderId": 0,
    "name": "文档目录",
    "childrenList": [
      {
        "documentCount": 1,
        "folderAuthority": {
          "batchDownload": true,
          "preview": true,
          "deleteFile": true,
          "download": true,
          "deleteFolder": true,
          "edit": true,
          "upload": true,
          "replace": true,
          "create": true,
          "editAuthority": true,
          "history": true,
          "look": true
        },
        "orderId": 0,
        "name": "00.1.0手册123123",
        "childrenList": [],
        "uuid": "02ee9ce0688e495c9a57cb009fdf295c",
        "parentId": "0"
      },
      {
        "documentCount": 0,
        "folderAuthority": {
          "batchDownload": true,
          "preview": true,
          "deleteFile": true,
          "download": true,
          "deleteFolder": true,
          "edit": true,
          "upload": true,
          "replace": true,
          "create": true,
          "editAuthority": true,
          "history": true,
          "look": true
        },
        "orderId": 0,
        "name": "A2.流程管理",
        "childrenList": [
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "4.事件流程",
            "childrenList": [],
            "uuid": "8f4d2e3a-f436-4b96-aa22-4821ec800fbc",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "3.变更流程",
            "childrenList": [],
            "uuid": "f3eb2a1e-13fe-449e-bf4f-32cb403e5060",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "5.问题流程",
            "childrenList": [],
            "uuid": "a8d083a8-c9e4-42ce-9ca4-550c5bd98f0f",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "2.配置管理流程",
            "childrenList": [],
            "uuid": "f0a64d19-5c06-46a9-a2c8-2b253b5c1ace",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "7.服务协议",
            "childrenList": [],
            "uuid": "34f50555-f47b-4695-ad81-23b36480176e",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "6.技术支持",
            "childrenList": [],
            "uuid": "fac783a5-ba2a-4f85-b7c8-8f93b3a98b09",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          },
          {
            "documentCount": 0,
            "folderAuthority": {
              "batchDownload": true,
              "preview": true,
              "deleteFile": true,
              "download": true,
              "deleteFolder": true,
              "edit": true,
              "upload": true,
              "replace": true,
              "create": true,
              "editAuthority": true,
              "history": true,
              "look": true
            },
            "orderId": 0,
            "name": "1.发布流程",
            "childrenList": [
              {
                "documentCount": 0,
                "folderAuthority": {
                  "batchDownload": true,
                  "preview": true,
                  "deleteFile": true,
                  "download": true,
                  "deleteFolder": true,
                  "edit": true,
                  "upload": true,
                  "replace": true,
                  "create": true,
                  "editAuthority": true,
                  "history": true,
                  "look": true
                },
                "orderId": 0,
                "name": "c",
                "childrenList": [],
                "uuid": "97dd62c9888b4c73bb68ec5b22f31b3a",
                "parentId": "1c54f1ee-d521-4a21-8d4d-c92eba2e2606"
              },
              {
                "documentCount": 0,
                "folderAuthority": {
                  "batchDownload": true,
                  "preview": true,
                  "deleteFile": true,
                  "download": true,
                  "deleteFolder": true,
                  "edit": true,
                  "upload": true,
                  "replace": true,
                  "create": true,
                  "editAuthority": true,
                  "history": true,
                  "look": true
                },
                "orderId": 0,
                "name": "b",
                "childrenList": [],
                "uuid": "9585283c4a884f509f9de17f1bc2e9b3",
                "parentId": "1c54f1ee-d521-4a21-8d4d-c92eba2e2606"
              }
            ],
            "uuid": "1c54f1ee-d521-4a21-8d4d-c92eba2e2606",
            "parentId": "ecc50d6c-edfe-4913-a6d9-039878f4da6c"
          }
        ],
        "uuid": "ecc50d6c-edfe-4913-a6d9-039878f4da6c",
        "parentId": "0"
      }
    ]
  }
}