feat(admin): full integration of order, product, and finance modules with real RPC data streams
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user