[TOC]
简要描述
请求URL
https://ipaas.tj-test.mycyjg.com/apigate/syncDeptBelongUser
请求方式
请求参数
参数名 |
位置 |
必选 |
类型 |
说明 |
Authorization |
header |
是 |
string |
明源鉴权接口返回的access_token |
userId |
body |
是 |
string |
用户id |
deptId |
body |
是 |
string |
部门id |
请求示例
{
"deptId": 1, //部门 ID
"deptCode": "", //部门 code
"deptUsers": [{
"userId": 45, //用户 id
"userCode": "yangw", //用户 code
"userSort": 1, //用户排序
"userType": 1 //用户类别, 1 部门负责人, 0 员工
},
{
"userId": 8,
"userCode": "wux",
"userSort": 4,
"userType": 0
},
{
"userId": 9,
"userCode": "tuyq",
"userSort": 2,
"userType": 0
},
{
"userId": 13,
"userCode": "wangt",
"userSort": 6,
"userType": 0
},
{
"userId": 56,
"userCode": "gup",
"userSort": 5,
"userType": 0
},
{
"userId": 1493,
"userCode": "renj",
"userSort": 3,
"userType": 0
},
{
"userId": 1664,
"userCode": "zhujz",
"userSort": 9999,
"userType": 0
}
]
}
返回参数说明
参数名 |
类型 |
说明 |
Data |
string |
无 |
Code |
string |
状态码 成功200 |
Message |
string |
成功OK,失败返回失败原因 |
Exception |
string |
成功为空,异常返回异常信息 |
返回示例
{
"Data": {},
"Success": true,
"Message": "OK",
"Exception": "",
"Code": "200"
}
备注