获取子部门接口
一、接口URL
/department/childorglist?token=xxxxxx×pan=xxxx&sign=xxxxx
二、功能
根据部门名称获取所有下一级部门
三、请求参数
| 名称 | 类型 | 是否必传 | 传参方式 | 说明 |
|---|---|---|---|---|
| token | String | true | RequestParam | 访问 的key |
| timespan | Long | true | RequestParam | 当前时间戳 |
| parentName | String | true | RequestBody | 父级部门名称,传空则返回所有一级部门(如果传空,该参数不参与签名) |
| sign | String | true | RequestBody | 签名,方法见【签名方法】 |
四、返回参数
| 名称 | 类型 | 说明 |
|---|---|---|
| errorCode | Integer | 结果码,0: 成功, 非0:失败 (具体描述见错误码表) |
| errorMessage | String | 错误描述 |
| requestId | String | 请求唯一ID。 |
| id | Long | 部门id |
| name | String | 部门名称 |
| parentId | Long | 上级部门id |
| orderFlag | String | 部门排序值 |
| customerOrgId | String | 第三方组织id |
五、返回体
{
"errorCode":0,
"data":[
{
"id":5555555,
"name":"客服部",
"parentId":6666666,
"orderFlag":999,
"customerOrgId":"A01"
}
],
"errorMessage":"Successful!",
"requestId":"openapi-ums-xxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
}
六、备注
签名时参数名称,同参数名


