## 示例
接口名稱:存款列表
接口地址:域名/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": []
}
}
~~~