部门同步

  • 接口:/common/thirdparty/syn/departments

  • Method:POST

  • 数据格式:JSON

  • 接口说明:同步部门信息到第三方平台

请求参数

字段 类型 释义 是否必填
platform String 渠道(url参数) Y
departmentSynBatchVo DepartmentSynBatchVo 请求数据体(请求体) Y

DepartmentSynBatchVo

字段 类型 释义 是否必填
departmentInfos List 部门数据 Y
config JSONObject 配置 N

DepartmentInfoSyn

字段 类型 释义 是否必填
departmentName String 部门名称 N
departmentCode String 部门编码 N
departmentId Integer 部门ID N
ownerEmployeeNumber String 主管员工编号 N
ownerId Integer 所有者ID N
type String 部门类型 N
enabledFlag String 启用标志(Y/N) N

请求示例

/common/thirdparty/syn/departments?platform=ctrip
{
    "departmentInfos": [
        {
            "departmentName": "部门名称",
            "departmentCode": "部门编码",
            "ownerEmployeeNumber": "主管员工编号",
            "type": "部门类型",
            "enabledFlag": "部门类型"
        }
    ]
}

响应参数

字段名称 字段类型 字段描述
resCode String 状态码
resMsg String 描述
data List 同步成功后的绑定信息

data

字段名称 字段类型 字段描述
bindCode String 同步成功后的第三方绑定code
companyId Integer 公司id
departmentId Integer 部门id
lastSuccessDate Date 上次同步成功时间
updateStatus Integer 是否更新成功

响应示例

{
    "data": [
        {
            "bindCode": "561224",
            "companyId": 22154,
            "departmentId": 124840,
            "lastSuccessDate": 1734675288571,
            "platform": "dianping",
            "updateStatus": 1
        }
    ],
    "resCode": 200000,
    "resMsg": "success"
}

results matching ""

    No results matching ""