배치 API 추가

This commit is contained in:
changkyu choi 2024-12-11 18:10:56 +09:00
parent 1aee8d6425
commit 3f97239d88

View File

@ -1,4 +1,5 @@
import { useAxios } from '@/hooks/useAxios'
import axios from 'axios'
/**
* 마스터 컨트롤러
@ -30,8 +31,47 @@ export function useMasterController() {
})
}
/**
* 가대 목록 조회
* @param
* @returns
*/
const getTrestleList = async (params) => {
return await get({ url: `/api/v1/master/getTrestleList/${params}` }).then((res) => {
console.log('🚀🚀 ~ getTrestleList ~ res:', res)
return res
})
}
/**
* 모듈 시공법 목록 조회
* @param
* @returns
*/
const getConstructionList = async (params) => {
return await get({ url: `/api/v1/master/getConstructionList/${params}` }).then((res) => {
console.log('🚀🚀 ~ getConstructionList ~ res:', res)
return res
})
}
/**
* 가대 상세 조회
* @param
* @returns
*/
const getTrestleDetailList = async (params) => {
return await get({ url: `/api/v1/master/getTrestleDetailList/${params}` }).then((res) => {
console.log('🚀🚀 ~ getTrestleDetailList ~ res:', res)
return res
})
}
return {
getRoofMaterialList,
getModuleTypeItemList,
getTrestleList,
getConstructionList,
getTrestleDetailList,
}
}