// -------------------------------------------------------------------- // 아파트 단지 내 전체 관리비 집계 목록 조회 // -------------------------------------------------------------------- // 작성일 : 2022. 06. 17 // 작성자 : 홍사민 // -------------------------------------------------------------------- // - 대상 기간 : 전체, 하절기, 동절기 // -------------------------------------------------------------------- import { HTTPNoBody } from '@fastify-modular/route'; import { pito } from 'pito'; import { pitoExt } from '..'; // -------------------------------------------------------------------- export const KaptMncstDefine = pito.Obj({ totalCost: pitoExt.Currency(), // 총 관리비 pubCost : pitoExt.Currency(), // 공용 관리비 prvCost : pitoExt.Currency(), // 개별 관리비 heatCost : pitoExt.Currency(), // 난방비 }); // -------------------------------------------------------------------- export const FindKaptMncstTotalOption = pito.Obj({ id: pito.Str(), // 검색할 대상의 ID(LV1 ~ LV3 가능, LV1으로 변환) }); export type FindKaptMncstTotalOption = pito.Type; // -------------------------------------------------------------------- export const FindKaptMncstTotalOutput = pito.Obj({ month : KaptMncstDefine, // 월평균 summer: KaptMncstDefine, // 하절기 평균 winter: KaptMncstDefine, // 동절기 평균 }); export type FindKaptMncstTotalOutput = pito.Type; // -------------------------------------------------------------------- // 아파트 단지 내 전체, 하절기, 동절기 관리비 조회 export const FindKaptMncstTotal = HTTPNoBody('GET', '/api/v1/address/find-kapt-mncst-total', 'history') .query(FindKaptMncstTotalOption) .response(FindKaptMncstTotalOutput) .build(); // --------------------------------------------------------------------