GET /rest/orgwise/3/department/{id}

接口说明

获取指定部门的信息。

媒体类型

application/json

路径参数

参数

说明

必须

id

部门的ID或NO.,部门唯一标识

必须

返回示例

{
    "code": 0,
    "msg": "Success",
    "data": {
        "id": 3,
        "no": "D4",
        "name": "Dev",
        "type": "SUB_DEPARTMENT",
        "parent": 2,
        "leader": {
            "id": 13,
            "workNumber": "E19",
            "gender": "MALE",
            "phone": "",
            "memo": "",
            "jiraUser": {
                "userKey": "JIRAUSER10116",
                "avatar": "https://www.gravatar.com/avatar/03c31b3cfde27dba0c5a6347a6bad01d?d=mm&s=16",
                "userName": "pluto154",
                "displayName": "pluto154",
                "emailAddress": "pluto154@dsd.com",
                "isActive": true
            },
            "mainDepartment": {
                "id": 1,
                "no": "D1",
                "name": "DSD",
                "type": "COMPANY",
                "createTime": "2022-03-15 11:29:20"
            },
            "departments": [
                {
                    "id": 1,
                    "no": "D1",
                    "name": "DSD",
                    "type": "COMPANY",
                    "createTime": "2022-03-15 11:29:20"
                },
                {
                    "id": 3,
                    "no": "D4",
                    "name": "Dev",
                    "type": "SUB_DEPARTMENT",
                    "createTime": "2022-03-15 13:00:39",
                    "parent": 2
                }
            ],
            "createTime": "2022-03-15 11:44:06.269"
        },
        "assignee": {
            "id": 14,
            "workNumber": "E25",
            "gender": "MALE",
            "phone": "",
            "memo": "",
            "jiraUser": {
                "userKey": "JIRAUSER10122",
                "avatar": "https://www.gravatar.com/avatar/976c543445f4973ce327b3abd1602f9d?d=mm&s=16",
                "userName": "Amy211",
                "displayName": "Amy211",
                "emailAddress": "Amy211@dsd.com",
                "isActive": true
            },
            "mainDepartment": {
                "id": 1,
                "no": "D1",
                "name": "DSD",
                "type": "COMPANY",
                "createTime": "2022-03-15 11:29:20"
            },
            "departments": [
                {
                    "id": 1,
                    "no": "D1",
                    "name": "DSD",
                    "type": "COMPANY",
                    "createTime": "2022-03-15 11:29:20"
                }
            ],
            "createTime": "2022-03-15 11:44:06.269"
        },
        "parentDepartment": {
            "id": 2,
            "no": "D2",
            "name": "IT",
            "type": "DEPARTMENT",
            "createTime": "2022-03-15 13:00:39",
            "parent": 1
        },
        "rootDepartmentId": 1,
        "description": "Department",
        "createTime": "2022-03-15 13:00:39.496"
    }
}
  • No labels