feat(FE-350): add filtering table

This commit is contained in:
randy-ar
2025-12-24 16:44:53 +07:00
parent 36ff6d04ee
commit 8c95dc8327
10 changed files with 933 additions and 2843 deletions
+4 -8
View File
@@ -4,10 +4,7 @@ import { BaseApiResponse } from '@/types/api/api-general';
import { httpClient } from '@/services/http/client';
import { Finance } from '@/types/api/finance/finance';
// DUMMY_START
import {
getAllDummyFinance,
getSingleDummyFinance,
} from '@/dummy/finance/finance.dummy';
import { getAllFetcher, getFetcher } from '@/dummy/finance/finance.dummy';
// DUMMY_END
export class FinanceApiService extends BaseApiService<
@@ -21,7 +18,7 @@ export class FinanceApiService extends BaseApiService<
async getAllFetcher(): Promise<BaseApiResponse<Finance[]>> {
// DUMMY_START
return await getAllDummyFinance();
return await getAllFetcher();
// DUMMY_END
// LIVE_START
@@ -37,10 +34,9 @@ export class FinanceApiService extends BaseApiService<
// LIVE_END
}
async getSingleFetcher(id: string): Promise<BaseApiResponse<Finance>> {
async getSingle(id: number): Promise<BaseApiResponse<Finance>> {
// DUMMY_START
console.log(id);
return await getSingleDummyFinance(id);
return await getFetcher(id);
// DUMMY_END
// LIVE_START