fix: 更新提现审核相关功能 更新账务报表页面功能

This commit is contained in:
ZhuRui
2026-08-05 17:34:01 +08:00
parent 8951733a2d
commit bc7e9169db
12 changed files with 374 additions and 168 deletions
+6 -6
View File
@@ -12,7 +12,7 @@ export type { WithdrawVO, WithdrawInfoVO, WithdrawQueryParams, PageData, ApiResu
const delay = (ms: number) => new Promise<void>((r) => setTimeout(r, ms));
/** GET /finance/withdraw/page — 提现列表分页 */
/** GET /admin/finance/withdraw/page — 提现列表分页 */
export async function getWithdrawList(
params: WithdrawQueryParams,
): Promise<ApiResult<PageData<WithdrawVO>>> {
@@ -26,16 +26,16 @@ export async function getWithdrawList(
data: buildMockWithdrawPage(page, limit, params),
};
}
return get('/finance/withdraw/page', params as Record<string, any>);
return get('/admin/finance/withdraw/page', params as Record<string, any>);
}
/** GET /finance/withdraw/info?id=xxx — 提现详情 */
/** GET /admin/finance/withdraw/info?id=xxx — 提现详情 */
export async function getWithdrawInfo(id: number): Promise<ApiResult<WithdrawInfoVO>> {
if (USE_MOCK) {
await delay(MOCK_DELAY);
return { code: 200, msg: 'success', data: buildMockWithdrawInfo(id) };
}
return get('/finance/withdraw/info', { id: String(id) });
return get('/admin/finance/withdraw/info', { id: String(id) });
}
/** 提现审核请求参数 */
@@ -50,7 +50,7 @@ export interface WithdrawAuditParams {
checkImg: string;
}
/** POST /finance/withdraw/audit — 审核提现 */
/** POST /admin/finance/withdraw/audit — 审核提现 */
export async function postWithdrawAudit(params: WithdrawAuditParams): Promise<ApiResult<null>> {
return post('/finance/withdraw/audit', params);
return post('/admin/finance/withdraw/audit', params);
}