- 接口变更记录
- 开发前准备
- 请求签名鉴权方式
- OAuth2.0鉴权方式
- 常见问题速查
- 接入
- 公共数据获取
- 系统管理接口
- 患者档案相关
- CRM
- 会员
- HIS
- 外加工
- 进销存
- OA审批
- 渠道管理
保存员工档案
开发中
POST
/api/anon/openapi/pub/employee/save
最后修改时间:2024-07-11 02:24:35
责任人:阳平安
请求参数
Body 参数application/json
employee
object (员工信息(保存))
员工信息
id
null
id
organizationCode
null
组织机构编码
number
null
编号
name
null
姓名
EnglishName
null
英文名
previousName
null
曾用名
gender
null
性别
departmentID
null
所属科室id
licenseNumber
null
执业证号
certificationNumber
null
资格证号
positionID
null
职位id
appointmentAvailable
null
是否可预约
status
null
状态
roleNames
array[string]
角色名称列表
departmentIDs
array[integer]
兼职科室id
organizationCodes
array[string]
兼职机构编码
profile
object
员工档案
mobilePhone
string
移动电话
contactPhoneNumber
string
联系电话
identityCardNumber
string
身份证号码
nationCode
string
民族编码
birthDate
string
出生日期
joinedDate
string
入职日期
email
string
电子邮箱
remarks
string
备注
user
object
账号信息
username
string
用户名
loginPassword
string
登录密码
businessPassword
string
业务密码
expirationDate
string
密码有效期
示例
{
"employee": {
"gender": 1,
"name": "接口测试",
"number": "test001",
"certificationNumber": null,
"licenseNumber": null,
"departmentID": 1,
"id": null,
"positionID": 1,
"appointmentAvailable": null,
"EnglishName": null,
"status": null,
"organizationCode": null,
"previousName": null
},
"organizationCodes": ["DEV"],
"departmentIDs": [1,2,3],
"user": {
"username": "interfaceTest001",
"loginPassword": "interface001",
"businessPassword": "interface001",
"expirationDate": "9999-12-30"
},
"roleNames": ["收银员", "电网咨询师", "咨询师"],
"profile": {
"contactPhoneNumber": "18160587189",
"nationCode": "01",
"remarks": "备注, 接口传入",
"mobilePhone": "18160587189",
"birthDate": "1996-02-18",
"joinedDate": "2008-05-06",
"identityCardNumber": "421022200011125136",
"email": "q.tkfd@qq.com"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/anon/openapi/pub/employee/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"employee": {
"gender": 1,
"name": "接口测试",
"number": "test001",
"certificationNumber": null,
"licenseNumber": null,
"departmentID": 1,
"id": null,
"positionID": 1,
"appointmentAvailable": null,
"EnglishName": null,
"status": null,
"organizationCode": null,
"previousName": null
},
"organizationCodes": ["DEV"],
"departmentIDs": [1,2,3],
"user": {
"username": "interfaceTest001",
"loginPassword": "interface001",
"businessPassword": "interface001",
"expirationDate": "9999-12-30"
},
"roleNames": ["收银员", "电网咨询师", "咨询师"],
"profile": {
"contactPhoneNumber": "18160587189",
"nationCode": "01",
"remarks": "备注, 接口传入",
"mobilePhone": "18160587189",
"birthDate": "1996-02-18",
"joinedDate": "2008-05-06",
"identityCardNumber": "421022200011125136",
"email": "q.tkfd@qq.com"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}