fix: Add comment

This commit is contained in:
yoosangwook 2024-12-11 13:51:06 +09:00
parent 6dbe47a7e8
commit 873cbcf2d2

View File

@ -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)