账单流水
请求URL:
/getUserBill
请求方式:
- GET
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | int | 当前页 |
| page_size | 否 | int | 每页展示数 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 359,
"userId": 1,
"amount": 100,
"content": "账户充值",
"type": 10,
"createdAt": 1745705505,
"updatedAt": 1745705505
},
{
"id": 358,
"userId": 1,
"amount": 100,
"content": "账户充值",
"type": 10,
"createdAt": 1745705397,
"updatedAt": 1745705397
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | array | 数据列表 |
| - id | int | 流水ID |
| - userId | int | 用户ID |
| - amount | int | 变动金额 |
| - content | string | 描述 |
| - type | int | 类型 |
| - createdAt | int | 创建时间 |
| - updatedAt | int | 更新时间 |
备注 type(类型)值:
1-注册赠送
5-免费领取
6-完善资料赠送
7-看广告免费领取
10-账户充值
20-生图消耗
30-任务失败退款