feat(admin): full integration of order, product, and finance modules with real RPC data streams

This commit is contained in:
comlibmb
2026-02-11 16:59:38 +08:00
parent cd7b92d496
commit 7e2246fec5
33 changed files with 2535 additions and 2093 deletions

View File

@@ -149,3 +149,18 @@ export async function fetchUserBillList(
items: (data.items as Array<UserBillRecord>) ?? ([] as Array<UserBillRecord>)
} as PagedResult<UserBillRecord>
}
/**
* 获取账单汇总统计
*/
export async function fetchFinanceBillSummary(
startTime : string,
endTime : string,
interval : string = 'day'
) : Promise<Array<any>> {
return (await rpcOrEmptyArray('rpc_admin_finance_bill_summary', {
p_start_time: startTime,
p_end_time: endTime,
p_interval: interval
} as any)) as any
}