fix: Add comment
This commit is contained in:
parent
6dbe47a7e8
commit
873cbcf2d2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user