...
根据用户名或用户key获取该用户的领导,包括该成员的上级主管、所属主部门的负责人、所属主部门的经办人。
媒体类型
- application/json
路径参数
| 参数 | 说明 | 必须 |
|---|---|---|
| userNameOrKey | 用户名或用户key,用户唯一标识 | 必须 |
返回示例
| 代码块 | ||||||
|---|---|---|---|---|---|---|
| ||||||
{
"code": 0,
"msg": "Success",
"data": {
"supervisor": {
"id": 2,
"workNumber": "E3",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10100",
"avatar": "https://www.gravatar.com/avatar/14e93c442f806bc2497946bac881be94?d=mm&s=16",
"userName": "pluto",
"displayName": "Pluto Po",
"emailAddress": "pluto@p.com",
"isActive": true
},
"mainDepartment": {
"id": 2,
"no": "D2",
"name": "DEV",
"type": "SUB_DEPARTMENT",
"createTime": "2022-09-01 11:42:19",
"parent": 1
},
"createTime": "2022-09-01 10:43:01.655"
},
"departmentAssignee": {
"id": 2,
"workNumber": "E3",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10100",
"avatar": "https://www.gravatar.com/avatar/14e93c442f806bc2497946bac881be94?d=mm&s=16",
"userName": "pluto",
"displayName": "Pluto Po",
"emailAddress": "pluto@p.com",
"isActive": true
},
"mainDepartment": {
"id": 2,
"no": "D2",
"name": "DEV",
"type": "SUB_DEPARTMENT",
"createTime": "2022-09-01 11:42:19",
"parent": 1
},
"createTime": "2022-09-01 10:43:01.655"
},
"headOfDepartment": {
"id": 3,
"workNumber": "E4",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10101",
"avatar": "https://www.gravatar.com/avatar/b6d57f4e261cda44c2260ded96f165ae?d=mm&s=16",
"userName": "poppy",
"displayName": "Poppy Po",
"emailAddress": "poppy@p.cpm",
"isActive": true
},
"mainDepartment": {
"id": 1,
"no": "D1",
"name": "SHDSD",
"type": "COMPANY",
"createTime": "2022-09-01 10:33:46"
},
"createTime": "2022-09-01 10:43:14.421"
}
}
} |
...