From 0babe172831489f79183310a844712bbcee10089 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 11 Sep 2024 17:28:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=98=EC=98=81=20-=20=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/support/KkoTalkApiService.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java index 5338bd9..c533a6a 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java @@ -72,6 +72,7 @@ public class KkoTalkApiService { private static final Validator validator = Validation.buildDefaultValidatorFactory().getValidator(); private static final CharSequence ENVELOPE_ID = "{ENVELOPE_ID}"; + private static final CharSequence TOKEN = "{TOKEN}"; /** @@ -123,7 +124,9 @@ public class KkoTalkApiService { return callApi( HttpMethod.valueOf(API_VALID_TOKEN[1]), - HOST + API_VALID_TOKEN[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()), + HOST + API_VALID_TOKEN[0] + .replace(ENVELOPE_ID, reqDTO.getEnvelopeId()) + .replace(TOKEN, reqDTO.getToken()), null, getHeaders(orgMng)); } @@ -141,11 +144,9 @@ public class KkoTalkApiService { public ResponseEntity modifyStatus(final OrgMng orgMng, final KkotalkDTO.EnvelopeId reqDTO){ validate(reqDTO.getEnvelopeId(), null); - final String url = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()); - return callApi( HttpMethod.valueOf(API_MODIFY_STATUS[1]), - url, + HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()), null, getHeaders(orgMng)); } @@ -171,14 +172,6 @@ public class KkoTalkApiService { HOST + API_BULKSTATUS[0], param, getHeaders(orgMng)); - - // KkotalkDTO.BulkStatusResponse res = webClient.exchangeKkotalk( - // HOST + API_BULKSTATUS[0], - // HttpMethod.valueOf(API_BULKSTATUS[1]), - // param, - // KkotalkDTO.BulkStatusResponse.class, - // getRlaybsnmInfo(reqDTO)); - // return res.getEnvelopeStatus().get(0); } /**