获取用户信息列表
POST
/api/v1/system/user/index
iThings-apisvr/系统管理/用户管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec
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
按邮箱筛选
示例
{
"page": {
"page": 0,
"size": 0
},
"userName": "string",
"phone": "string",
"email": "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/index' \
--header 'iThings-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec' \
--header 'iThings-token;' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--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"
}'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
msg
string
错误信息
data
object
必需
total
integer
总数
list
array[object (UserInfo) {22}]
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"total": 0,
"list": [
{
"userID": 0,
"userName": "string",
"password": "string",
"email": "string",
"phone": "string",
"lastIP": "string",
"regIP": "string",
"nickName": "string",
"city": "string",
"country": "string",
"province": "string",
"language": "string",
"headImg": "string",
"isUpdateHeadImg": true,
"createdTime": 0,
"role": 0,
"sex": 0,
"status": 0,
"isAllData": 0,
"messageNotRead": {},
"roles": [
{
"id": 0,
"name": "string",
"desc": "string",
"createdTime": 0,
"status": 0
}
],
"tenant": {
"id": 0,
"code": "string",
"name": "string",
"adminUserID": 0,
"adminRoleID": 0,
"desc": "string",
"defaultProjectID": 0,
"backgroundColour": "string",
"backgroundImg": "string",
"isUpdateBackgroundImg": true,
"logoImg": "string",
"isUpdateLogoImg": true,
"title": "string",
"titleEn": "string",
"createdTime": 0,
"status": 0,
"adminUserInfo": {
"userID": 0,
"userName": "string",
"email": "string",
"phone": "string",
"lastIP": "string",
"regIP": "string",
"nickName": "string",
"headImg": "string",
"createdTime": 0
}
}
}
]
}
}

扫码加入 iThings微信交流群

