获取用户信息列表
POST
/api/v1/system/user/info/index
iThings-apisvr/系统管理new/用户管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
{{iThings-token}}
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
page
object
分页
page
integer
页码
size
integer
每页大小
userName
string
按用户账号筛选
phone
string
按手机号筛选
email
string
按邮箱筛选
account
string
账号模糊查询
hasAccessAreas
array[string] | null
过滤拥有区域权限的用户(传空数组为获取该项目下所有区域的权限,如[])
roleCode
string
通过角色code过滤
userIDs
array[string]
可选
示例
{
"page": {
"page": 0,
"size": 0
},
"userName": "string",
"phone": "string",
"email": "string",
"account": "string",
"hasAccessAreas": [
"string"
],
"roleCode": "string",
"userIDs": [
"string"
]
}
示例代码
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/v1/system/user/info/index' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-token;' \
--header 'iThings-project-id: 1764806234122309632{{iThings-token}}' \
--header 'iThings-project-id;' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-app-code;' \
--header 'iThings-user-role: 1' \
--header 'iThings-user-role;' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": {
"page": 0,
"size": 0
},
"userName": "string",
"phone": "string",
"email": "string",
"account": "string",
"hasAccessAreas": [
"string"
],
"roleCode": "string",
"userIDs": [
"string"
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
msg
string
错误信息
data
object
必需
total
integer
总数
list
array[object (UserInfo) {22}]
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"list": [
{
"userID": "1740358057038188544",
"userName": "administrator",
"email": "",
"phone": "",
"lastIP": "",
"regIP": "",
"nickName": "iThings管理员",
"city": "",
"country": "",
"province": "",
"language": "",
"headImgUrl": "",
"createdTime": "1702646043",
"role": 1,
"sex": 3,
"isAllData": 1
}
],
"total": 1
}
}

扫码加入 iThings微信交流群

