GET /wallets/{user_id}/stats
获取指定用户的钱包统计数据
钱包服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
user_id |
path |
string |
Yes |
|
|
|
用户ID |
period |
query |
string |
No |
all |
|
|
统计周期 |
start_date |
query |
string |
No |
|
|
|
开始日期 |
end_date |
query |
string |
No |
|
|
|
结束日期 |
Referenced Schemas
dto.WalletStatsDetail
| Field | Type | Required | Example | Constraints | Description |
average_transaction |
string |
No |
500.00 |
|
平均交易金额 |
end_date |
string |
No |
2026-04-30 |
|
结束日期 |
largest_transaction |
string |
No |
5000.00 |
|
最大单笔交易 |
period |
string |
No |
month |
|
统计周期 |
start_date |
string |
No |
2026-04-01 |
|
开始日期 |
total_deposits |
string |
No |
10000.00 |
|
总充值 |
total_transfers_in |
string |
No |
20000.00 |
|
总转入 |
total_transfers_out |
string |
No |
15000.00 |
|
总转出 |
total_withdrawals |
string |
No |
5000.00 |
|
总提现 |
transaction_count |
integer |
No |
150 |
|
交易笔数 |
dto.WalletStatsDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.WalletStatsDetail |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|