fix: 处理余额方面问题与banner页面不自动加载问题
This commit is contained in:
@@ -9,6 +9,7 @@ import { buildMockWalletTransactionPage } from '@/config/mock/walletTransactions
|
||||
import type {
|
||||
WalletQueryParams,
|
||||
WalletSummaryVO,
|
||||
WalletSummaryPageData,
|
||||
WalletTransactionQueryParams,
|
||||
WalletTransactionVO,
|
||||
PageData,
|
||||
@@ -17,6 +18,7 @@ import type {
|
||||
|
||||
export type {
|
||||
WalletSummaryVO,
|
||||
WalletSummaryPageData,
|
||||
WalletQueryParams,
|
||||
WalletTransactionVO,
|
||||
WalletTransactionQueryParams,
|
||||
@@ -29,7 +31,7 @@ const delay = (ms: number) => new Promise<void>((r) => setTimeout(r, ms));
|
||||
/** GET /admin/finance/wallet/summary — 钱包列表分页 */
|
||||
export async function getWalletList(
|
||||
params: WalletQueryParams,
|
||||
): Promise<ApiResult<PageData<WalletSummaryVO>>> {
|
||||
): Promise<ApiResult<WalletSummaryPageData>> {
|
||||
if (USE_MOCK) {
|
||||
await delay(MOCK_DELAY);
|
||||
const page = Number(params.page) || 1;
|
||||
|
||||
+14
-3
@@ -17,14 +17,25 @@ export interface WalletSummaryVO {
|
||||
frozenAmount: string;
|
||||
/** 累计成功提现金额("0.00"格式) */
|
||||
withdrawalAmount: string;
|
||||
/** 汇总行-总余额 */
|
||||
}
|
||||
|
||||
/** 钱包汇总扩展数据(与 total 同级) */
|
||||
export interface WalletSummaryExData {
|
||||
/** 总余额 */
|
||||
totalAmount: string;
|
||||
/** 汇总行-总冻结金额 */
|
||||
/** 总冻结金额 */
|
||||
totalFrozenAmount: string;
|
||||
/** 汇总行-总累计提现 */
|
||||
/** 总累计提现 */
|
||||
totalWithdrawalAmount: string;
|
||||
}
|
||||
|
||||
/** 钱包列表分页响应 */
|
||||
export interface WalletSummaryPageData {
|
||||
total: number;
|
||||
list: WalletSummaryVO[];
|
||||
exData: WalletSummaryExData;
|
||||
}
|
||||
|
||||
/** 钱包列表查询参数 */
|
||||
export interface WalletQueryParams {
|
||||
page?: string;
|
||||
|
||||
Reference in New Issue
Block a user