导出员工
POST
/eims/api/admin/staffs/actions/export
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参 数application/json
userIds
array[string] | null
可选
mobiles
array[string] | null
可选
emails
array[string] | null
可选
staffIds
array[string] | null
可选
departmentId
string | null
可选
companyId
string | null
可选
keyword
string | null
可选
limit
integer | null
默认20条
默认值:
20
staffs
array[object (StaffImportForm) {11}] | null
可选
realName
string
姓名
<= 30 字符
account
string
账号
正则匹配:
^[a-zA-Z0-9-_]{1,30}$
password
string
登录密码
正则匹配:
^(?![0-9]+$)(?![a-zA-Z]+$)[0-9a-zA-Z-`=\[\];',.~!@#$%^&*()_+|{}:"?]{8,16}$
department
string | null
部门
jobTitle
string | null
职位
<= 30 字符
staffNo
string | null
工号
<= 30 字符
email
string | null
邮箱
<= 128 字符
正则匹配:
^\s*\w+(?:\.?[\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\.[a-zA-Z]+\s*$
mobile
string | null
手机号
<= 11 字符
remark
string | null
备注
<= 200 字符
userId
string | null
用户 Id
lineNum
integer | null
行数
示例
{
"userIds": [
"string"
],
"mobiles": [
"string"
],
"emails": [
"string"
],
"staffIds": [
"string"
],
"departmentId": "string",
"companyId": "string",
"keyword": "string",
"limit": "20",
"staffs": [
{
"realName": "string",
"account": "string",
"password": "string",
"department": "string",
"jobTitle": "string",
"staffNo": "string",
"email": "string",
"mobile": "string",
"remark": "string",
"userId": "string",
"lineNum": 0
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/eims/api/admin/staffs/actions/export' \
--header 'Content-Type: application/json' \
--data-raw '{
"userIds": [
"string"
],
"mobiles": [
"string"
],
"emails": [
"string"
],
"staffIds": [
"string"
],
"departmentId": "string",
"companyId": "string",
"keyword": "string",
"limit": "20",
"staffs": [
{
"realName": "string",
"account": "string",
"password": "string",
"department": "string",
"jobTitle": "string",
"staffNo": "string",
"email": "string",
"mobile": "string",
"remark": "string",
"userId": "string",
"lineNum": 0
}
]
}'
返回响应
🟢200成功
application/json
Body
{@link }
companyName
string | null
企业名称
staffs
array[object (StaffView) {15}] | null
可选
staffId
string | null
员工 id
department
string | null
部门名称
userId
string | null
用户 id
mobile
string | null
手机号
account
string | null
融合新增字段,账号
email
string | null
邮箱
jobTitle
string | null
职位
realName
string | null
名称
staffNo
string | null
员工编号
departmentId
string | null
部门 id
companyId
string | null
企业 id
companyName
string | null
企业名称
type
integer | null
可选
remark
string | null
备注
avatar
string | null
头像
示例
{
"companyName": "",
"staffs": [
{
"staffId": {
"mostSigBits": 0,
"leastSigBits": 0
},
"department": "",
"userId": {
"mostSigBits": 0,
"leastSigBits": 0
},
"mobile": "",
"mobileAreaCode": "",
"email": "",
"jobTitle": "",
"realName": "",
"state": 0,
"staffNo": "",
"departmentId": {
"mostSigBits": 0,
"leastSigBits": 0
},
"activationState": 0,
"orgName": "",
"companyId": {
"mostSigBits": 0,
"leastSigBits": 0
},
"verified": false,
"companyName": "",
"shortName": "",
"companyCode": "",
"logo": "",
"type": 0,
"permissions": {
"areaIds": [
""
],
"departmentIds": [
""
],
"deviceAreaIds": [
""
],
"resourcePermission": [
""
]
},
"remark": "",
"avatar": "",
"displayName": "",
"openId": "",
"count": 0,
"country": "",
"province": "",
"city": "",
"district": "",
"address": "",
"adminName": "",
"adminMobile": ""
}
]
}