소스 경로 변경
This commit is contained in:
@@ -16,7 +16,7 @@ package io.shinhanlife.dap.mcc.converter;
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
import io.shinhanlife.dap.mcc.dto.SmsSendReq;
|
import io.shinhanlife.dap.mcc.dto.SmsSendReq;
|
||||||
import io.shinhanlife.dap.mcc.sms.dto.SmsLegacyReqDto;
|
import io.shinhanlife.dap.mcc.legacy.SmsLegacyReq;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.Mapping;
|
import org.mapstruct.Mapping;
|
||||||
|
|
||||||
@@ -25,5 +25,5 @@ public interface SmsLegacyConverter {
|
|||||||
|
|
||||||
@Mapping(source = "phoneNumber", target = "phone")
|
@Mapping(source = "phoneNumber", target = "phone")
|
||||||
@Mapping(source = "message", target = "content")
|
@Mapping(source = "message", target = "content")
|
||||||
SmsLegacyReqDto toLegacyReq(SmsSendReq req);
|
SmsLegacyReq toLegacyReq(SmsSendReq req);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ package io.shinhanlife.dap.mcc.service;
|
|||||||
|
|
||||||
import io.shinhanlife.dap.mcc.annotation.McpFunction;
|
import io.shinhanlife.dap.mcc.annotation.McpFunction;
|
||||||
import io.shinhanlife.dap.mcc.annotation.McpTool;
|
import io.shinhanlife.dap.mcc.annotation.McpTool;
|
||||||
|
import io.shinhanlife.dap.mcc.converter.SmsLegacyConverter;
|
||||||
import io.shinhanlife.dap.mcc.dto.SmsSendReq;
|
import io.shinhanlife.dap.mcc.dto.SmsSendReq;
|
||||||
import io.shinhanlife.dap.mcc.sms.dto.SmsLegacyReqDto;
|
import io.shinhanlife.dap.mcc.legacy.SmsLegacyReq;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@@ -35,7 +36,7 @@ public class SmsToolService extends AbstractMcpToolService {
|
|||||||
log.info("[SMS] SMS 발송 요청 수신. 수신자: {}", req.getPhoneNumber());
|
log.info("[SMS] SMS 발송 요청 수신. 수신자: {}", req.getPhoneNumber());
|
||||||
|
|
||||||
// MapStruct를 이용한 자동 매핑 (AI DTO -> MCI DTO)
|
// MapStruct를 이용한 자동 매핑 (AI DTO -> MCI DTO)
|
||||||
SmsLegacyReqDto legacyReq = converter.toLegacyReq(req);
|
SmsLegacyReq legacyReq = converter.toLegacyReq(req);
|
||||||
|
|
||||||
// 레거시 시스템 연동 (EAI) - DTO 객체를 그대로 넘김
|
// 레거시 시스템 연동 (EAI) - DTO 객체를 그대로 넘김
|
||||||
Map<String, Object> result = executeLegacy("EAI", "SMS_SEND_001", legacyReq);
|
Map<String, Object> result = executeLegacy("EAI", "SMS_SEND_001", legacyReq);
|
||||||
|
|||||||
Reference in New Issue
Block a user