a563c1ca4b
docs/api目录文档分类和补全 --------- Co-authored-by: guke <guke@autohome.com.cn> Reviewed-on: #111
29 lines
995 B
Markdown
29 lines
995 B
Markdown
# GET /api/v1/wallet/coin-transactions — 金币流水(游标分页)
|
||
|
||
> 所属:Wallet 组(前缀 `/api/v1/wallet`) | 鉴权:Bearer | [← 返回 API 索引](../README.md)
|
||
|
||
## 入参(query)
|
||
|
||
| 字段 | 类型 | 必填 | 默认 | 说明 |
|
||
|---|---|---|---|---|
|
||
| `limit` | int | ❌ | 20 | 1–100 |
|
||
| `cursor` | int | ❌ | null | 上一页末条 `id`,首页不传 |
|
||
|
||
## 出参
|
||
响应 `200`:`{ items: CoinTransactionOut[], next_cursor: int|null }`(分页见 [索引#游标分页约定](./README.md#游标分页约定))
|
||
|
||
**CoinTransactionOut**
|
||
|
||
| 字段 | 类型 | 说明 |
|
||
|---|---|---|
|
||
| `id` | int | 流水 id(也是游标) |
|
||
| `amount` | int | 金币变动,正=入账 负=出账 |
|
||
| `balance_after` | int | 变动后余额 |
|
||
| `biz_type` | string | 业务类型(签到/任务/兑换等) |
|
||
| `ref_id` | string \| null | 关联业务 id |
|
||
| `remark` | string \| null | 备注 |
|
||
| `created_at` | datetime | 时间 |
|
||
|
||
## 说明
|
||
金币历史页(`COIN_HISTORY`)数据源。
|