搜索企业员工
GET
/eims/api/v2/admin/staffs
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
pageNo
integer
页码
pageSize
integer
每页大小
account
string
账号,全匹配查询
departmentId
string
部门 id
keyword
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/eims/api/v2/admin/staffs?pageNo&pageSize&account&departmentId&keyword'
返回响应
🟢200成功
application/json
Body
pageNo
integer | null
页码
pageSize
integer | null
每页数量
total
string | null
总数
data
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
头像
onlineTotal
string | null
在线数量
示例
{
"pageNo": 65,
"pageSize": 80,
"total": null,
"data": [
{
"staffId": "c817cc4c-a7e0-4e60-aad2-47aa0fea47c7",
"department": "部门名称",
"userId": "c817cc4c-a7e0-4e60-aad2-47aa0fea47c7",
"mobile": "18177947258",
"account": "nisi",
"email": "z.acn@qq.com",
"jobTitle": "职位",
"realName": "名称",
"staffNo": 1,
"departmentId": "c817cc4c-a7e0-4e60-aad2-47aa0fea47c7",
"companyId": "c817cc4c-a7e0-4e60-aad2-47aa0fea47c7",
"type": 1,
"remark": "",
"avatar": ""
}
],
"onlineTotal": "1"
}