From 428fcace7b3d56fdf6299d87858a79b7f12725ab Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 30 Aug 2024 09:24:58 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=AF=B8=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=ED=95=AD=EB=AA=A9=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/xit/ens/kt/service/IKtBcService.java | 8 +++----- .../java/kr/xit/ens/kt/service/KtBcService.java | 17 +++-------------- .../main/resources/config/application-dev.yml | 9 --------- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/ens/kt/service/IKtBcService.java b/mens-api/src/main/java/kr/xit/ens/kt/service/IKtBcService.java index ecabd41..44d9d17 100644 --- a/mens-api/src/main/java/kr/xit/ens/kt/service/IKtBcService.java +++ b/mens-api/src/main/java/kr/xit/ens/kt/service/IKtBcService.java @@ -1,6 +1,5 @@ package kr.xit.ens.kt.service; - import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfRequest; import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfResponse; import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoCfmRequest; @@ -11,8 +10,7 @@ import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse; import kr.xit.biz.ens.model.kt.KtCommonDTO.KtMnsRequest; import kr.xit.biz.ens.model.kt.KtExcaDTO.KtExcaRequest; import kr.xit.biz.ens.model.kt.KtExcaDTO.KtExcaResponse; -import kr.xit.biz.ens.model.kt.KtInputDTO.KtApproveRcvRequest; -import kr.xit.biz.ens.model.kt.KtInputDTO.KtRefuseRcvRequest; +import kr.xit.biz.ens.model.kt.KtInputDTO; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtBlacklistRequest; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtSendSttcDtlRequest; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtSendSttcDtlResponse; @@ -64,8 +62,8 @@ public interface IKtBcService { KtSendSttcDtlResponse sendSttcDtl(final KtSendSttcDtlRequest reqDTO); KtCommonResponse whitelist(final KtWhitelistRequest reqDTO); - KtCommonResponse refuseRcv(final KtRefuseRcvRequest reqDTO); - KtCommonResponse approveRcv(final KtApproveRcvRequest reqDTO); + KtCommonResponse refuseRcv(final KtInputDTO.KtRefuseRcvRequest reqDTO); + KtCommonResponse approveRcv(final KtInputDTO.KtApproveRcvRequest reqDTO); KtAcmdCerfResponse cerfAcmd(final KtAcmdCerfRequest reqDTO); diff --git a/mens-api/src/main/java/kr/xit/ens/kt/service/KtBcService.java b/mens-api/src/main/java/kr/xit/ens/kt/service/KtBcService.java index 09070d3..1819e1c 100644 --- a/mens-api/src/main/java/kr/xit/ens/kt/service/KtBcService.java +++ b/mens-api/src/main/java/kr/xit/ens/kt/service/KtBcService.java @@ -26,8 +26,7 @@ import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse; import kr.xit.biz.ens.model.kt.KtCommonDTO.KtMnsRequest; import kr.xit.biz.ens.model.kt.KtExcaDTO.KtExcaRequest; import kr.xit.biz.ens.model.kt.KtExcaDTO.KtExcaResponse; -import kr.xit.biz.ens.model.kt.KtInputDTO.KtApproveRcvRequest; -import kr.xit.biz.ens.model.kt.KtInputDTO.KtRefuseRcvRequest; +import kr.xit.biz.ens.model.kt.KtInputDTO; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtBlacklistRequest; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtSendSttcDtlRequest; import kr.xit.biz.ens.model.kt.KtMmsDTO.KtSendSttcDtlResponse; @@ -150,16 +149,6 @@ public class KtBcService extends AbstractService implements IKtBcService { */ @Value("${app.contract.kt.api.cfm-acmd}") private String API_CFM_ACMD; - /** - * 수신거부상태전송 : BC-AG-SN-014 - */ - @Value("${app.contract.kt.api.refuse-rcv}") - private String API_REFUSE_RCV; - /** - * 수신동의상태전송 : BC-AG-SN-015 - */ - @Value("${app.contract.kt.api.approve-rcv}") - private String API_APPROVE_RCV; private final ApiWebClientUtil webClient; private final ICmmEnsCacheService cacheService; @@ -362,7 +351,7 @@ public class KtBcService extends AbstractService implements IKtBcService { } @Override - public KtCommonResponse refuseRcv(final KtRefuseRcvRequest reqDTO) { + public KtCommonResponse refuseRcv(final KtInputDTO.KtRefuseRcvRequest reqDTO) { //final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); //reqDTO.setServiceCd(ktMnsInfo.get); //reqDTO.setServiceKey(ktMnsInfo.get); @@ -375,7 +364,7 @@ public class KtBcService extends AbstractService implements IKtBcService { } @Override - public KtCommonResponse approveRcv(final KtApproveRcvRequest reqDTO) { + public KtCommonResponse approveRcv(final KtInputDTO.KtApproveRcvRequest reqDTO) { //final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); //reqDTO.setServiceCd(ktMnsInfo.get); //reqDTO.setServiceKey(ktMnsInfo.get); diff --git a/mens-api/src/main/resources/config/application-dev.yml b/mens-api/src/main/resources/config/application-dev.yml index 740b74c..a747172 100644 --- a/mens-api/src/main/resources/config/application-dev.yml +++ b/mens-api/src/main/resources/config/application-dev.yml @@ -92,12 +92,3 @@ app: kt: host: http://211.43.10.163:10210/ONLWeb - api: - # 모바일페이지 : 본문자수신등록 callback url - 토큰인증확인 조회, 열람확인결과 전송 - dp-callback-url: http://${app.api-ip}:8081/api/biz/mbl/v1/kt/dpMblPage - me-callback-url: http://${app.api-ip}:8081/api/biz/mbl/v1/kt/meMblPage - - # 수신거부상태전송 : BC-AG-SN-014 - refuse-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/refuse - # 수신동의상태전송 : BC-AG-SN-015 - approve-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/approve