解决合并代码后的报错问题

This commit is contained in:
2026-03-19 09:56:41 +08:00
parent 6955e73317
commit 14b506036c
4 changed files with 182 additions and 22 deletions

View File

@@ -164,3 +164,36 @@ export async function fetchFinanceBillSummary(
p_interval: interval
} as any)) as any
}
/**
* 获取余额汇总指标(当前总余额、累计充值、累计消耗)
*/
export async function fetchAdminBalanceStats() : Promise<any | null> {
return await rpcOrNull('rpc_admin_balance_stats', {} as UTSJSONObject)
}
/**
* 获取余额趋势(按天,每条记录含 date_group / accumulation / consumption
*/
export async function fetchAdminBalanceTrend(
startTime : string,
endTime : string
) : Promise<Array<any>> {
return (await rpcOrEmptyArray('rpc_admin_balance_trend', {
p_start_time: startTime,
p_end_time: endTime
} as UTSJSONObject)) as Array<any>
}
/**
* 获取余额来源与消耗分布(返回 { income: any[], expense: any[] }
*/
export async function fetchAdminBalanceDistribution(
startTime : string,
endTime : string
) : Promise<any | null> {
return await rpcOrNull('rpc_admin_balance_distribution', {
p_start_time: startTime,
p_end_time: endTime
} as UTSJSONObject)
}