From 36efd20807fedb47fa29b3e87871e0eb9f8a913d Mon Sep 17 00:00:00 2001 From: ri-naa Date: Thu, 11 Jan 2024 04:05:44 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=ED=95=9C=EA=B5=AD=EC=96=B4=20=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=20=EB=82=B4=EC=9A=A9=20=EC=B6=94=EA=B0=80=20#3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ALGo/ALGo_server/message/dto/MessageResponse.java | 4 +++- .../com/ALGo/ALGo_server/message/service/MessageService.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ALGo/ALGo_server/message/dto/MessageResponse.java b/src/main/java/com/ALGo/ALGo_server/message/dto/MessageResponse.java index 935a067..e1086b5 100644 --- a/src/main/java/com/ALGo/ALGo_server/message/dto/MessageResponse.java +++ b/src/main/java/com/ALGo/ALGo_server/message/dto/MessageResponse.java @@ -7,6 +7,7 @@ @Data public class MessageResponse { private String MSG_CN; //메세지 내용 + private String trans_MSG_CN; //번역된 내용 private String CREAT_DT; //생성일 private List RCV_AREA_ID; //수신지역 id private List RCV_AREA_NM; //수신지역명 @@ -14,8 +15,9 @@ public class MessageResponse { private String DSSTR_SE_ID; //재해구분 id private String DSSTR_SE_NM; //재해구분 명 - public MessageResponse(String MSG_CN, String CREAT_DT, List RCV_AREA_ID, List RCV_AREA_NM, String EMRGNCY_STEP_ID, String DSSTR_SE_ID, String DSSTR_SE_NM){ + public MessageResponse(String MSG_CN, String trans_MSG_CN, String CREAT_DT, List RCV_AREA_ID, List RCV_AREA_NM, String EMRGNCY_STEP_ID, String DSSTR_SE_ID, String DSSTR_SE_NM){ this.MSG_CN = MSG_CN; + this.trans_MSG_CN = trans_MSG_CN; this.CREAT_DT = CREAT_DT; this.RCV_AREA_ID = RCV_AREA_ID; this.RCV_AREA_NM = RCV_AREA_NM; diff --git a/src/main/java/com/ALGo/ALGo_server/message/service/MessageService.java b/src/main/java/com/ALGo/ALGo_server/message/service/MessageService.java index 25d1446..a24dc16 100644 --- a/src/main/java/com/ALGo/ALGo_server/message/service/MessageService.java +++ b/src/main/java/com/ALGo/ALGo_server/message/service/MessageService.java @@ -93,7 +93,7 @@ public MessageResponse message(User user) throws IOException, ParseException { String translatedMSG = naverTransService.getTransSentence(MSG_CN, user); - MessageResponse response = new MessageResponse(translatedMSG, CREAT_DT, areaIdArr, areaNmArr, EMRGNCY_STEP_ID, DSSTR_SE_ID, DSSTR_SE_NM); + MessageResponse response = new MessageResponse(MSG_CN, translatedMSG, CREAT_DT, areaIdArr, areaNmArr, EMRGNCY_STEP_ID, DSSTR_SE_ID, DSSTR_SE_NM); return response; } }