From 1a30c3a0cd38ba21fe728919f6a60464f2e4f052 Mon Sep 17 00:00:00 2001 From: jade Date: Tue, 21 Jul 2026 22:19:09 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=84=EC=9A=94=20=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/presentation/MciTestController.java | 63 ------------------- 1 file changed, 63 deletions(-) delete mode 100644 dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/other/presentation/MciTestController.java diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/other/presentation/MciTestController.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/other/presentation/MciTestController.java deleted file mode 100644 index 8cf197e..0000000 --- a/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/other/presentation/MciTestController.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.shinhanlife.dap.mcc.other.presentation; - -import io.shinhanlife.dap.common.adapter.sender.ShinhanMciSender; -import io.shinhanlife.dap.common.integration.mci.dto.MciRequestWrapper; -import io.shinhanlife.dap.common.integration.mci.dto.ShinhanCommonHeaderDto; -import lombok.Data; -import lombok.RequiredArgsConstructor; -import jakarta.servlet.http.HttpServletRequest; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * @package io.shinhanlife.dap.mcc.other.presentation - * @className MciTestController - * @description AX HUB 시스템 처리 클래스 - * @author 김형식 - * @create 2026.09.01 - *
- * ---------- 개정이력 ----------
- * 수정일      수정자    수정내용
- * ---------- -------- ---------------------------
- * 2026.09.01  김형식    최초생성
- * 
- * 
- */ -@RestController -@RequestMapping("/api/test/mci") -@RequiredArgsConstructor -public class MciTestController { - - private final ShinhanMciSender shinhanMciSender; - - @Data - public static class SampleBizData { - private String customerId; - private String amount; - private String message; - } - - @PostMapping("/send") - public String testSendMci(HttpServletRequest request, @RequestBody SampleBizData bizData) { - try { - MciRequestWrapper wrapper = new MciRequestWrapper<>(); - - ShinhanCommonHeaderDto header = new ShinhanCommonHeaderDto(); - header.setItrIfId("NCSBACO00001"); - header.setRcvSvcId("OBACA9040"); - wrapper.setTgrmCmnnhddValu(header); - - wrapper.setBody(bizData); - - String hostUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort(); - String targetUrl = hostUrl + "/api/mock/esb/api"; // 로컬 Mock 서버 URL 호출 - - return shinhanMciSender.send(targetUrl, wrapper); - - } catch (Exception e) { - return "MCI 전송 실패: " + e.getMessage(); - } - } -}