diff --git a/src/main/java/com/interplug/qcast/biz/master/MasterController.java b/src/main/java/com/interplug/qcast/biz/master/MasterController.java index 6f831b3e..aa347d91 100644 --- a/src/main/java/com/interplug/qcast/biz/master/MasterController.java +++ b/src/main/java/com/interplug/qcast/biz/master/MasterController.java @@ -14,9 +14,7 @@ import com.interplug.qcast.config.Exception.QcastException; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; -import org.springframework.cloud.openfeign.SpringQueryMap; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -45,20 +43,20 @@ public class MasterController { } @Operation(description = "가대 목록 조회") - @PostMapping("/getTrestleList") - public ApiResponse getTrestleList(@SpringQueryMap ApiTrestleRequest params) { + @GetMapping("/getTrestleList") + public ApiResponse getTrestleList(@RequestParam ApiTrestleRequest params) { return masterService.getTrestleList(params); } @Operation(description = "시공법 목록 조회") - @PostMapping("/getConstructionList") - public ApiResponse getConstructionList(@SpringQueryMap ApiConstructionRequest params) { + @GetMapping("/getConstructionList") + public ApiResponse getConstructionList(@RequestParam ApiConstructionRequest params) { return masterService.getConstructionList(params); } @Operation(description = "가대 상세 조회") - @PostMapping("/getTrestleDetailList") - public ApiResponse getTrestleDetailList(@SpringQueryMap ApiTrestleDetailRequest params) { + @GetMapping("/getTrestleDetailList") + public ApiResponse getTrestleDetailList(@RequestParam ApiTrestleDetailRequest params) { return masterService.getTrestleDetailList(params); } } diff --git a/src/main/java/com/interplug/qcast/biz/master/MasterService.java b/src/main/java/com/interplug/qcast/biz/master/MasterService.java index 71f8e623..0ba61cf0 100644 --- a/src/main/java/com/interplug/qcast/biz/master/MasterService.java +++ b/src/main/java/com/interplug/qcast/biz/master/MasterService.java @@ -10,7 +10,6 @@ import com.interplug.qcast.biz.master.dto.ApiTrestleDetailResponse; import com.interplug.qcast.biz.master.dto.ApiTrestleRequest; import com.interplug.qcast.biz.master.dto.ApiTrestleResponse; import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.cloud.openfeign.SpringQueryMap; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -29,13 +28,13 @@ public interface MasterService { // 가대 목록 조회 @GetMapping("/trestle") - public ApiResponse getTrestleList(@SpringQueryMap ApiTrestleRequest params); + public ApiResponse getTrestleList(@RequestParam ApiTrestleRequest params); // 시공법 목록 조회 @GetMapping("/construction") - public ApiResponse getConstructionList(@SpringQueryMap ApiConstructionRequest params); + public ApiResponse getConstructionList(@RequestParam ApiConstructionRequest params); // 가대 상세 조회 @GetMapping("/trestle/detail") - public ApiResponse getTrestleDetailList(@SpringQueryMap ApiTrestleDetailRequest params); + public ApiResponse getTrestleDetailList(@RequestParam ApiTrestleDetailRequest params); } diff --git a/src/main/java/com/interplug/qcast/biz/master/dto/ApiTrestleDetailRequest.java b/src/main/java/com/interplug/qcast/biz/master/dto/ApiTrestleDetailRequest.java index 4a27cb10..85df7913 100644 --- a/src/main/java/com/interplug/qcast/biz/master/dto/ApiTrestleDetailRequest.java +++ b/src/main/java/com/interplug/qcast/biz/master/dto/ApiTrestleDetailRequest.java @@ -47,5 +47,8 @@ public class ApiTrestleDetailRequest { /** Mix Meterial No */ private int mixMatlNo; + + /** Roof Pitch */ + private int roofPitch; }