fix: restore Nginx port 8281 mapping - Apache VirtualHost proxies to 8281
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 13m41s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 13m41s
This commit is contained in:
@@ -1,38 +0,0 @@
|
|||||||
package io.shinhanlife.dap.mcc.sample.converter;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @package io.shinhanlife.dap.mcc.sample.converter
|
|
||||||
* @className SampleLegacyConverter
|
|
||||||
* @description AX HUB 시스템 처리 클래스
|
|
||||||
* @author 0986406
|
|
||||||
* @create 2026.09.01
|
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 0986406 최초생성
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
|
||||||
import io.shinhanlife.dap.mcc.sample.dto.SampleAiReqDto;
|
|
||||||
import io.shinhanlife.dap.mcc.sample.dto.SampleLegacyReqDto;
|
|
||||||
import org.mapstruct.Mapper;
|
|
||||||
import org.mapstruct.Mapping;
|
|
||||||
import org.mapstruct.factory.Mappers;
|
|
||||||
|
|
||||||
@Mapper(componentModel = "spring")
|
|
||||||
public interface SampleLegacyConverter {
|
|
||||||
|
|
||||||
// 테스트 환경 등에서 Spring Bean 주입 없이 직접 접근하기 위한 INSTANCE 제공 (IDE 에러 방지용)
|
|
||||||
SampleLegacyConverter INSTANCE = Mappers.getMapper(SampleLegacyConverter.class);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AI Agent의 DTO를 MCI 통신용 DTO로 변환합니다.
|
|
||||||
* 필드명이 달라도 @Mapping 어노테이션으로 손쉽게 연결할 수 있습니다.
|
|
||||||
*/
|
|
||||||
@Mapping(source = "userId", target = "customerId")
|
|
||||||
@Mapping(source = "actionType", target = "interfaceId")
|
|
||||||
@Mapping(source = "extraInfo", target = "requestDetails")
|
|
||||||
SampleLegacyReqDto toLegacyRequest(SampleAiReqDto aiRequest);
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
package io.shinhanlife.dap.mcc.sample.dto;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @package io.shinhanlife.dap.mcc.sample.dto
|
|
||||||
* @className SampleAiReqDto
|
|
||||||
* @description AX HUB 시스템 처리 클래스
|
|
||||||
* @author 0986406
|
|
||||||
* @create 2026.09.01
|
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 0986406 최초생성
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
@Builder
|
|
||||||
@ToString
|
|
||||||
public class SampleAiReqDto {
|
|
||||||
/**
|
|
||||||
* AI Agent가 전달하는 자연어 기반의 고객 식별자
|
|
||||||
*/
|
|
||||||
private String userId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AI Agent가 판별한 액션 유형
|
|
||||||
*/
|
|
||||||
private String actionType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* AI Agent가 추출한 부가 정보
|
|
||||||
*/
|
|
||||||
private String extraInfo;
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
package io.shinhanlife.dap.mcc.sample.dto;
|
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @package io.shinhanlife.dap.mcc.sample.dto
|
|
||||||
* @className SampleMciReqDto
|
|
||||||
* @description AX HUB 시스템 처리 클래스
|
|
||||||
* @author 0986406
|
|
||||||
* @create 2026.09.01
|
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 0986406 최초생성
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Builder
|
|
||||||
@ToString
|
|
||||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class SampleLegacyReqDto {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MCI 인터페이스 ID (예: MCI0001)
|
|
||||||
*/
|
|
||||||
private String interfaceId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 고객 식별 번호
|
|
||||||
*/
|
|
||||||
private String customerId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 요청 세부 파라미터
|
|
||||||
*/
|
|
||||||
private String requestDetails;
|
|
||||||
}
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
package io.shinhanlife.dap.mcc.sample.dto;
|
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @package io.shinhanlife.dap.mcc.sample.dto
|
|
||||||
* @className SampleMciResDto
|
|
||||||
* @description AX HUB 시스템 처리 클래스
|
|
||||||
* @author 0986406
|
|
||||||
* @create 2026.09.01
|
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 0986406 최초생성
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@Builder
|
|
||||||
@ToString
|
|
||||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class SampleLegacyResDto {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 응답 코드 (예: "0000"이면 성공)
|
|
||||||
*/
|
|
||||||
private String resCode;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 응답 메시지
|
|
||||||
*/
|
|
||||||
private String resMsg;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 상세 데이터
|
|
||||||
*/
|
|
||||||
private Map<String, Object> data;
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
package io.shinhanlife.dap.mcc.sample.service;
|
|
||||||
|
|
||||||
import io.shinhanlife.dap.lib.adapter.support.MciTemplate;
|
|
||||||
import io.shinhanlife.dap.mcc.sample.dto.SampleLegacyReqDto;
|
|
||||||
import io.shinhanlife.dap.mcc.sample.dto.SampleLegacyResDto;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @package io.shinhanlife.dap.mcc.sample.service
|
|
||||||
* @className SampleLegacyCallService
|
|
||||||
* @description AX HUB 시스템 처리 클래스
|
|
||||||
* @author 0986406
|
|
||||||
* @create 2026.09.01
|
|
||||||
* <pre>
|
|
||||||
* ---------- 개정이력 ----------
|
|
||||||
* 수정일 수정자 수정내용
|
|
||||||
* ---------- -------- ---------------------------
|
|
||||||
* 2026.09.01 0986406 최초생성
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*/
|
|
||||||
@Slf4j
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public class SampleLegacyCallService {
|
|
||||||
|
|
||||||
private final MciTemplate mciTemplate;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MCI 인터페이스를 호출하는 샘플 메서드 (MciTemplate 시범 적용)
|
|
||||||
*
|
|
||||||
* @param request MCI 호출을 위한 요청 데이터
|
|
||||||
* @return MCI 서버의 응답 데이터
|
|
||||||
*/
|
|
||||||
public SampleLegacyResDto callSampleMci(SampleLegacyReqDto request) {
|
|
||||||
// 기존 20줄 이상의 통신 로직이 단 1줄로 완벽하게 은닉화 되었습니다.
|
|
||||||
return mciTemplate.call(request.getInterfaceId(), request, SampleLegacyResDto.class);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -46,7 +46,7 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
- "8080:8281"
|
- "8281:8281"
|
||||||
- "8282:8282"
|
- "8282:8282"
|
||||||
- "8283:8283"
|
- "8283:8283"
|
||||||
- "8284:8284"
|
- "8284:8284"
|
||||||
|
|||||||
Reference in New Issue
Block a user