refactor: apply Legacy naming convention to Sms and Sample converters and DTOs

This commit is contained in:
jade
2026-07-13 17:45:25 +09:00
parent c8fef29fcd
commit d24c95a2df
5 changed files with 16 additions and 16 deletions

View File

@@ -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);
}

View File

@@ -26,7 +26,7 @@ import lombok.ToString;
@ToString
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor
public class SampleMciReqDto {
public class SampleLegacyReqDto {
/**
* MCI 인터페이스 ID (: MCI0001)