12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
import type { paths } from '@/shared/api/schema';
|
|
|
|
import { api } from '@/shared/api/client';
|
|
|
|
type IncomesListResponse = paths['/incomes/list']['get']['responses']['200']['content']['application/json'];
|
|
|
|
export async function getIncomeLists() {
|
|
const { data: result } = await api.get<IncomesListResponse>('/incomes/list');
|
|
|
|
return result;
|
|
}
|