A AuthMS API Wiki API Reference iam.tianv.com →

GET /wallets/{user_id}/stats

获取指定用户的钱包统计数据

钱包服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes 用户ID
period query string No all 统计周期
start_date query string No 开始日期
end_date query string No 结束日期

Responses

StatusDescriptionSchema
200OKdto.WalletStatsDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.WalletStatsDetail

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.WalletStatsDetail No
message string No
timestamp string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No