import type { paths } from '@/shared/api/schema'; import { api } from '@/shared/api/client'; export type AddIncomeListBody = paths['/incomes/list']['post']['requestBody']['content']['application/json']; export type AddIncomeListPath = paths['/incomes/list']['post']['parameters']['path']; export type AddIncomeListSuccessResponse = paths['/incomes/list']['post']['responses']['200']['content']['application/json']; export async function addIncomeList(data: AddIncomeListBody) { const { data: result } = await api.post('/incomes/list', data); return result; }