获取数据列表
POST
/myauth/web/getDataList
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
type
string
上报类型
content
string
上报内容
ip
string
上报ip
addTime
integer
上报时间
device_info
string
设备信息
device_code
string
机器码
fromSoftId
integer
所属软件id
fromVerId
integer
所属版本id
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
可选
column
string
字段名
asc
string
是否正序排序
示例
{
"type": null,
"content": null,
"ip": null,
"addTime": null,
"fromSoftId": null,
"fromVerId": null,
"device_info": null,
"device_code": null,
"pageIndex": 1,
"pageSize": 10
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/getDataList' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": null,
"content": null,
"ip": null,
"addTime": null,
"fromSoftId": null,
"fromVerId": null,
"device_info": null,
"device_code": null,
"pageIndex": 1,
"pageSize": 10
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {11}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"type": "按时",
"content": "阿萨德阿萨德按时都",
"ip": "127.0.0.1",
"addTime": 1644744078,
"fromSoftId": 1,
"fromVerId": 97,
"deviceInfo": "windows 10",
"deviceCode": "5A79565CC85400F0",
"fromSoftName": "MyQQ",
"fromVer": "1.9.0"
},
{
"id": 2,
"type": "按时",
"content": "阿萨德阿萨德按时都\r\n我爱你",
"ip": "127.0.0.1",
"addTime": 1646100860,
"fromSoftId": 1,
"fromVerId": 90,
"deviceInfo": "windows 10",
"deviceCode": "5A79565CC85400F0",
"fromSoftName": "MyQQ",
"fromVer": "1.8.9"
},
{
"id": 3,
"type": "按时",
"content": "阿萨德阿萨德按时都\r\n我爱你",
"ip": "127.0.0.1",
"addTime": 1646100884,
"fromSoftId": 1,
"fromVerId": 90,
"deviceInfo": "windows 10",
"deviceCode": "5A79565CC85400F0",
"fromSoftName": "MyQQ",
"fromVer": "1.8.9"
},
{
"id": 4,
"type": "按时",
"content": "阿萨德阿萨德按时都\r\n我爱你",
"ip": "127.0.0.1",
"addTime": 1646101759,
"fromSoftId": 1,
"fromVerId": 90,
"deviceInfo": "windows 10",
"deviceCode": "5A79565CC85400F0",
"fromSoftName": "MyQQ",
"fromVer": "1.8.9"
}
],
"total": 4,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1646315476955
}
🔴500错误
修改于 2022-03-03 14:42:09