mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
feat(FE-350): add filtering table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user