WalletService

GetConsumptionSummary 按时间分桶汇总当前用户消费(与 consumed_micros 同口径: direction='debit' 全量出账)。供前端消费统计图表使用,避免前端用分页流水现算导致与 余额卡「累计消费」对不上账。

get/v1/console/wallet/consumption-summary

Query parameters

granularitystring

granularity 分桶粒度:day(默认)/ month。

bucketsinteger

buckets 返回的桶数量(含当前桶往前推)。day 默认 15、month 默认 12; 非法或为 0 时由后端取默认值,并设上限防止超大窗口扫账本。

Response

OK

granularitystring

granularity 实际生效的粒度(回显,便于前端校验)。

totalMicrosstring

total_micros 返回窗口内所有桶之和(微单位)。注意这是「窗口内」总额, 与余额卡 consumed_micros(全期全量)口径相同但时间范围不同。

Changes

No recorded changes to this endpoint across all 1 revision of this API.