배치 API 추가
This commit is contained in:
parent
1aee8d6425
commit
3f97239d88
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user