forked from kimhyungsik/ax_hub_mcp_tool
refactor: apply Legacy naming convention to Sms and Sample converters and DTOs
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
package io.shinhanlife.axhub.biz.mcp.sample.converter;
|
||||
|
||||
import io.shinhanlife.axhub.biz.mcp.sample.dto.SampleAiReqDto;
|
||||
import io.shinhanlife.axhub.biz.mcp.sample.dto.SampleMciReqDto;
|
||||
import io.shinhanlife.axhub.biz.mcp.sample.dto.SampleLegacyReqDto;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface SampleMciConverter {
|
||||
public interface SampleLegacyConverter {
|
||||
|
||||
// 테스트 환경 등에서 Spring Bean 주입 없이 직접 접근하기 위한 INSTANCE 제공 (IDE 에러 방지용)
|
||||
SampleMciConverter INSTANCE = Mappers.getMapper(SampleMciConverter.class);
|
||||
SampleLegacyConverter INSTANCE = Mappers.getMapper(SampleLegacyConverter.class);
|
||||
|
||||
/**
|
||||
* AI Agent의 DTO를 MCI 통신용 DTO로 변환합니다.
|
||||
@@ -19,5 +19,5 @@ public interface SampleMciConverter {
|
||||
@Mapping(source = "userId", target = "customerId")
|
||||
@Mapping(source = "actionType", target = "interfaceId")
|
||||
@Mapping(source = "extraInfo", target = "requestDetails")
|
||||
SampleMciReqDto toMciReq(SampleAiReqDto aiReq);
|
||||
SampleLegacyReqDto toLegacyReq(SampleAiReqDto aiReq);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import lombok.ToString;
|
||||
@ToString
|
||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
||||
@AllArgsConstructor
|
||||
public class SampleMciReqDto {
|
||||
public class SampleLegacyReqDto {
|
||||
|
||||
/**
|
||||
* MCI 인터페이스 ID (예: MCI0001)
|
||||
Reference in New Issue
Block a user