[TOC]
简要描述
请求URL
http://ipaas.tj-test.mycyjg.com/apigate/syncUserBelongDept
请求方式
请求参数
参数名 |
位置 |
必选 |
类型 |
说明 |
Authorization |
header |
是 |
string |
明源鉴权接口返回的access_token |
userId |
body |
是 |
string |
用户id |
deptId |
body |
是 |
string |
部门id |
deptType |
body |
是 |
string |
是否主部门 |
请求示例
{
"userId":8,//用户唯一 ID
"userCode":"wux",//用户 code, 即用户名
"userDepts":[
{
"deptId":1,//部门 id
"deptCode":"A0001",//部门 code
"userSort":4,//用户在此部门中的排序
"deptType":1//是否主部门
}
]
}
返回参数说明
参数名 |
类型 |
说明 |
Data |
string |
无 |
Code |
string |
状态码 成功200 |
Message |
string |
成功OK,失败返回失败原因 |
Exception |
string |
成功为空,异常返回异常信息 |
返回示例
{
"Data": {},
"Success": true,
"Message": "OK",
"Exception": "",
"Code": "200"
}
备注