获取用户信息列表
POST
/api/v1/system/user/index
iThings-apisvr/系统管理/用户管理
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Header 参数
iThings-token
string
可选
示例值:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzQwMzU4MDU3MDM4MTg4NTQ0IiwiZXhwIjoxNjgzNTQ4NDU5LCJpYXQiOjE2ODM1NDQ4NTksIlJvbGUiOjF9.ygQyxFx7AGtf7vcFJmE-xcElQUtwE23HN_0av02tSec
iThings-project-id
string
可选
默认值:
123123123
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 'http://42.193.250.251:7777/api/v1/system/user/index' \
--header 'iThings-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVaWQiOiIxNzY2MjUyMTY2OTI5NjEyODAwIiwiUm9sZSI6NSwiSXNBbGxEYXRhIjoyLCJleHAiOjE2ODcwMTUyMDYsImlhdCI6MTY4NzAwOTMxMn0.xxFiBpYlTIDLYhN-_stlrmYGOLqF-wHJKBSqs-zVb8k' \
--header 'iThings-project-id: 123123123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--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 (用户信息) {17}]
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"total": 0,
"list": [
{
"createdTime": "string",
"uid": "string",
"userName": "string",
"nickName": "string",
"sex": 0,
"city": "string",
"country": "string",
"province": "string",
"language": "string",
"headImgUrl": "string",
"regIP": "string",
"lastIP": "string",
"wechat": "string",
"phone": "string",
"email": "string",
"role": 0,
"isAllData": 0
}
]
}
}
修改于 2023-06-18 13:44:36