From 50b6b8b9b06951bcb80576c35a5677586ac9f4b1 Mon Sep 17 00:00:00 2001 From: jade Date: Tue, 21 Jul 2026 22:18:10 +0900 Subject: [PATCH] remove: Delete MciSampleTool and related DTOs --- .../dap/other/dto/MciSampleRequestDto.java | 30 --------- .../dap/other/dto/MyBizDataDto.java | 40 ------------ .../dap/other/tool/MciSampleTool.java | 65 ------------------- 3 files changed, 135 deletions(-) delete mode 100644 dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MciSampleRequestDto.java delete mode 100644 dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MyBizDataDto.java delete mode 100644 dap-tool-other/src/main/java/io/shinhanlife/dap/other/tool/MciSampleTool.java diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MciSampleRequestDto.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MciSampleRequestDto.java deleted file mode 100644 index 107f333..0000000 --- a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MciSampleRequestDto.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.shinhanlife.dap.other.dto; - -import io.shinhanlife.dap.mcc.annotation.McpParameter; -import lombok.Data; - -/** - * @package io.shinhanlife.dap.other.dto - * @className MciSampleRequestDto - * @description AX HUB 시스템 처리 클래스 - * @author 김형식 - * @create 2026.09.01 - *
- * ---------- 개정이력 ----------
- * 수정일      수정자    수정내용
- * ---------- -------- ---------------------------
- * 2026.09.01  김형식    최초생성
- * 
- * 
- */ -@Data -public class MciSampleRequestDto { - @McpParameter(description = "인터페이스 ID (입력 예시: S001)") - private String interfaceId; - - @McpParameter(description = "메시지 전송 유형 (입력 예시: T001)") - private String messageType; - - @McpParameter(description = "조회 대상 고객명 (입력 예시: 홍길동)") - private String customerName; -} diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MyBizDataDto.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MyBizDataDto.java deleted file mode 100644 index afecf61..0000000 --- a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/dto/MyBizDataDto.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.shinhanlife.dap.other.dto; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import io.shinhanlife.dap.mcc.annotation.McpParameter; - -/** - * @package io.shinhanlife.dap.other.dto - * @className MyBizDataDto - * @description AX HUB 시스템 처리 클래스 - 샘플 비즈니스 데이터 DTO - * @author 김형식 - * @create 2026.09.01 - *
- * ---------- 개정이력 ----------
- * 수정일      수정자    수정내용
- * ---------- -------- ---------------------------
- * 2026.09.01  김형식    최초생성
- * 
- * 
- */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class MyBizDataDto { - - @McpParameter(description = "고객 이름", required = true) - private String customerName; - - @McpParameter(description = "조회 대상 일자 (YYYYMMDD)", required = true) - private String targetDate; - - @McpParameter(description = "비고 내용") - private String remarks; -} diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/tool/MciSampleTool.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/other/tool/MciSampleTool.java deleted file mode 100644 index 17955bd..0000000 --- a/dap-tool-other/src/main/java/io/shinhanlife/dap/other/tool/MciSampleTool.java +++ /dev/null @@ -1,65 +0,0 @@ -package io.shinhanlife.dap.other.tool; - -import io.shinhanlife.dap.mcc.annotation.McpFunction; -import io.shinhanlife.dap.mcc.annotation.McpTool; -import io.shinhanlife.dap.common.integration.mci.dto.ShinhanTelegramWrapper; -import io.shinhanlife.dap.common.integration.mci.dto.ShinhanCommonHeaderDto; -import io.shinhanlife.dap.common.integration.mci.dto.ShinhanMessageDto; -import io.shinhanlife.dap.common.integration.mci.dto.ShinhanMessageDto.MsgHddvValu; -import io.shinhanlife.dap.other.dto.MyBizDataDto; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -import java.util.Map; -import java.util.UUID; - -import io.shinhanlife.dap.other.dto.MciSampleRequestDto; - -/** - * @package io.shinhanlife.dap.other.tool - * @className MciSampleTool - * @description AX HUB 시스템 처리 클래스 - MCI 연동 샘플 툴 - * @author 김형식 - * @create 2026.09.01 - *
- * ---------- 개정이력 ----------
- * 수정일      수정자    수정내용
- * ---------- -------- ---------------------------
- * 2026.09.01  김형식    최초생성
- * 
- * 
- */ -@Slf4j -@Service -@McpTool(routingType = "MCI", categoryKey = "common") -public class MciSampleTool { - - @McpFunction(register = false, displayName = "MCI 샘플 전송", name = "send_mci_sample", description = "MCI 표준 헤더, 메시지부, 데이터부 구조를 갖는 샘플 연동") - public ShinhanTelegramWrapper sendMciSample(MciSampleRequestDto params) { - log.info("▶ [MCI Sample Tool] 요청을 수신했습니다. 전달된 파라미터: {}", params); - - ShinhanTelegramWrapper request = new ShinhanTelegramWrapper<>(); - - // 1. 공통 헤더부 생성 - ShinhanCommonHeaderDto header = new ShinhanCommonHeaderDto(); - header.setItrIfId(params.getInterfaceId() != null && !params.getInterfaceId().isBlank() ? params.getInterfaceId() : "dummy_header"); - header.setReqRspnScCd("R"); - header.setGlbId(UUID.randomUUID().toString()); - request.setTgrmCmnnhddValu(header); - - // 2. 메시지부 생성 - ShinhanMessageDto msg = new ShinhanMessageDto(); - MsgHddvValu msgHeader = new MsgHddvValu(); - msgHeader.setMsgTnsmTypeCd(params.getMessageType() != null && !params.getMessageType().isBlank() ? params.getMessageType() : "dummy_msg_type"); - msg.setMsgHddvValu(msgHeader); - request.setTgrmMsdvValu(msg); - - // 3. 데이터부 생성 - MyBizDataDto bizData = new MyBizDataDto(); - bizData.setCustomerName(params.getCustomerName() != null && !params.getCustomerName().isBlank() ? params.getCustomerName() : "홍길동"); - bizData.setRemarks("정상적으로 처리되었습니다. (응답 테스트)"); - request.setTgrmDtdvValu(bizData); - - return request; - } -}