diff --git a/src/hooks/common/useMasterController.js b/src/hooks/common/useMasterController.js index 5467a2fc..e2125af1 100644 --- a/src/hooks/common/useMasterController.js +++ b/src/hooks/common/useMasterController.js @@ -1,14 +1,27 @@ import { useAxios } from '@/hooks/useAxios' +/** + * 마스터 컨트롤러 훅 + * @returns + */ export function useMasterController() { const { get } = useAxios() + /** + * 지붕재 목록 조회 + * @returns + */ const getRoofMaterialList = async () => { return await get({ url: '/api/v1/master/getRoofMaterialList' }).then((res) => { console.log('🚀🚀 ~ getRoofMaterialList ~ res:', res) }) } + /** + * 모듈 타입별 아이템 목록 조회 + * @param {지붕재 코드} roofMaterialCd + * @returns + */ const getModuleTypeItemList = async (roofMaterialCd) => { return await get({ url: `/api/v1/master/getModuleTypeItemList/${roofMaterialCd}` }).then((res) => { console.log('🚀🚀 ~ getModuleTypeItemList ~ res:', res)