- 常见问题
- 使用说明
- 用户模式
- 设备ID模式
- 云变量
- 云函数
- 用户数据
- 用户资产明细
- 其他接口
- 加密和安全
获取用户资产明细
POST
/api/v1/user-financial/getList
请求参数
Body 参数application/json
appid
integer
必需
data
object
必需
baseBody
object (客户端API通用数据)
必需
page
integer
页号
pageSize
integer
分页大小
access_token
string
token
示例
{
"appid": 11,
"data": {
"baseBody": {
"timestamp": {% mock 'timestamp' , 'ms' %},
"clientVersion": "1.0",
"deviceId": "fa6a91ef9baa242de0b354a212e8cf83",
"osType": "android",
"brand": "XIAOMI",
"model": "MI13"
},
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRvZ2NhdDY2NiIsImlkIjo2LCJyb2xlcyI6WyJ1c2VyIl0sImRldmljZUlkIjoiZmE2YTkxZWY5YmFhMjQyZGUwYjM1NGEyMTJlOGNmODMiLCJpYXQiOjE2ODA4OTY4MzcsImV4cCI6MTk5NjI1NjgzN30.6xSxmVgdiezhTyeHvdKgUqGxaPcTYO120G-0kmnzLlY"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.authdog.cn/api/v1/user-financial/getList' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": 11,
"data": {
"baseBody": {
"timestamp": {% mock '\''timestamp'\'' , '\''ms'\'' %},
"clientVersion": "1.0",
"deviceId": "fa6a91ef9baa242de0b354a212e8cf83",
"osType": "android",
"brand": "XIAOMI",
"model": "MI13"
},
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRvZ2NhdDY2NiIsImlkIjo2LCJyb2xlcyI6WyJ1c2VyIl0sImRldmljZUlkIjoiZmE2YTkxZWY5YmFhMjQyZGUwYjM1NGEyMTJlOGNmODMiLCJpYXQiOjE2ODA4OTY4MzcsImV4cCI6MTk5NjI1NjgzN30.6xSxmVgdiezhTyeHvdKgUqGxaPcTYO120G-0kmnzLlY"
}
}'
返回响应
🟢200成功
application/json
Body
data
object
必需
statusCode
integer
必需
message
string
必需
data
array [object {15}]
必需
timestamp
integer
必需
currentDeviceId
string
必需
示例
{
"data": {
"statusCode": 200,
"message": "success",
"data": [
{
"id": 6,
"createdAt": 1680941455045,
"updatedAt": "2023-04-08T08:10:55.045Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "time",
"direction": "in",
"value": 43200,
"before": "2023-04-19 16:04:46",
"reason": "充值卡充值",
"other": null
},
{
"id": 7,
"createdAt": 1680948581281,
"updatedAt": "2023-04-08T10:09:41.281Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "balance",
"direction": "out",
"value": -1,
"before": "1",
"reason": "用户消费",
"other": null
},
{
"id": 12,
"createdAt": 1683829870822,
"updatedAt": "2023-05-11T18:31:10.822Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "balance",
"direction": "in",
"value": 1,
"before": "0",
"reason": "管理员操作",
"other": null
},
{
"id": 13,
"createdAt": 1683829881991,
"updatedAt": "2023-05-11T18:31:21.991Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "balance",
"direction": "in",
"value": 2,
"before": "1",
"reason": "管理员操作1",
"other": null
},
{
"id": 14,
"createdAt": 1683829888976,
"updatedAt": "2023-05-11T18:31:28.976Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "time",
"direction": "in",
"value": 1440,
"before": "2023-05-19 16:04:46",
"reason": "管理员操作3",
"other": null
},
{
"id": 15,
"createdAt": 1683888343201,
"updatedAt": "2023-05-12T10:45:43.201Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "time",
"direction": "out",
"value": -43200,
"before": "2023-05-20 16:04:46",
"reason": "cece",
"other": null
},
{
"id": 17,
"createdAt": 1683971709594,
"updatedAt": "2023-05-13T09:55:09.594Z",
"ver": "0",
"developerId": 3,
"appid": 11,
"userType": "deviceid",
"userId": 3,
"name": "fa6a91ef9baa242de0b354a212e8cf83",
"type": "time",
"direction": "in",
"value": 15840,
"before": "2023-04-20 16:04:46",
"reason": "管理员操作",
"other": null
}
],
"timestamp": 1683971918488,
"currentDeviceId": "fa6a91ef9baa242de0b354a212e8cf83"
}
}