## 示例
接口名称:存款列表
接口地址:域名/index.php?m=api&c=transaction&a=getDepositList
请求方式:POST
数据类型:JSON
响应类型:JSON
请求参数:
| 参数名称 | 是否必须 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| uid | 否 | int | | 用户id |
| status | 否 | varchar | | 状态 cancelled 取消,pending正在上传 success成功 |
| page_size | 否 | int | | 每页大小默认10 |
| current_page | 否 | int | | 当前页默认1 |
响应数据:
| 参数名称 | 是否必须 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| message | 是 | string | | 返回信息 |
| code | 是 | int | | 状态码 |
| data | 是 | array / string | | json / false |
| --pagination | 是 | array | | 分页数据 |
| ---- total | 是 | int | | 总数量 |
| ---- page_count | 是 | int | | 分页数量 |
| ---- page_size | 是 | int | | 每页数量 |
| ---- current_page | 是 | int | | 当前页码 |
| --list | 是 | array | | 查询数据列表 |
| -----deposit_id | 是 | int | | 存款自增id |
| -----uid | 是 | int | | 用户uid |
| -----date | 是 | string | | 创建时间 |
| -----folio | 是 | string | | 对账单 |
| -----btc_expected | 是 | float | | 存入比特币金额 |
| -----btc_credited | 是 | float | | 实际存入比特币金额 |
| -----usd_expected | 是 | float | | 存入美元金额 |
| -----usd_credited_cash_wallet | float | string | | 实际存入美元金额 |
| -----status | 是 | string | | 状态 cancelled 取消,pending正在上传 success成功 |
| -----btc_wallet | 是 | string | | 比特币钱包地址 |
成功响应示列:
~~~
{
"code": 1001,
"message": "响应成功",
"data": {
"pagination": {
"total": 2,
"page_count": 0,
"current_page": 0,
"page_size": 0
},
"list": [
{
"deposit_id": "11",
"uid": "81",
"date": "2018-06-07",
"folio": "BTCD548678",
"btc_expected": "0.00148448",
"btc_credited": "0.00148448",
"usd_expected": "11.00",
"usd_credited_cash_wallet": "11.00",
"status": "success",
"btc_wallet": "53CUMRa7YxAuGT3bsVntRqd2g5ShWJ67W9Y"
},
{
"deposit_id": "10",
"uid": "81",
"date": "2018-06-07",
"folio": "BTCD460412",
"btc_expected": "0.00148448",
"btc_credited": "0.00148448",
"usd_expected": "11.00",
"usd_credited_cash_wallet": "11.00",
"status": "success",
"btc_wallet": "4CUMRa7YxAuGT3bsVntRqd2g5ShWJ67W9Y"
}
]
}
}
~~~
失败响应示列:
~~~
{
"code": 2001,
"message": "响应错误",
"data": {
"pagination": {
"total": 0,
"page_count": 0,
"current_page": 0,
"page_size": 0
},
"list": []
}
}
~~~