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


