Alfresco API

GET /api/afanti/orgchart/unit/{id}/subunits

请求说明

请求方式:GET
请求API :/api/afanti/orgchart/unit/{id}/subunits

Path 参数

名称 类型 是否必填 示例值 描述
id string   部门id

返回结果

{
  "data": {
    "children": [
      {
        "groupId": "workspace://SpacesStore/a8173b70-992e-4a23-b80c-99d6f14d9e74",
        "groupName": "GROUP_b3dc9e60-d9e5-4b29-a2c9-15249789daa9",
        "hasChild": true,
        "id": "b3dc9e60-d9e5-4b29-a2c9-15249789daa9",
        "name": "IT",
        "weight": 65536
      },
      {
        "groupId": "workspace://SpacesStore/00e2bbb3-4913-4c62-82df-809caf139726",
        "groupName": "GROUP_83e5d841-c0d2-4671-96a5-c1f0b8667a4c",
        "hasChild": true,
        "id": "83e5d841-c0d2-4671-96a5-c1f0b8667a4c",
        "name": "FI",
        "weight": 98304
      },
      {
        "groupId": "workspace://SpacesStore/3e126aff-08ec-4f14-863a-175d86e27f90",
        "groupName": "GROUP_ab0697bf-2747-4db2-b2ee-1ec92cd3a34d",
        "hasChild": true,
        "id": "ab0697bf-2747-4db2-b2ee-1ec92cd3a34d",
        "name": "HR",
        "weight": 196608
      }
    ],
    "groupId": "workspace://SpacesStore/e3aa8e62-ad51-4d77-b8bf-be8499d5b711",
    "groupName": "GROUP_default_orgchart",
    "hasChild": true,
    "id": "e60afd79-7b2d-4773-8e66-8e98741a543c",
    "name": "默认",
    "weight": 0
  },
  "message": "OK",
  "status": {
    "code": 200
  }
}