Skip to content

Commit

Permalink
Merge pull request GDSC-snowflowerthon#19 from GDSC-snowflowerthon/fe…
Browse files Browse the repository at this point in the history
…at/openApiParsing-3

[fix] 한국어 문자 내용 추가 GDSC-snowflowerthon#3
  • Loading branch information
ri-naa authored Jan 10, 2024
2 parents 3429098 + 035d942 commit 485c058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
@Data
public class MessageResponse {
private String MSG_CN; //메세지 내용
private String trans_MSG_CN; //번역된 내용
private String CREAT_DT; //생성일
private List<String> RCV_AREA_ID; //수신지역 id
private List<String> RCV_AREA_NM; //수신지역명
private String EMRGNCY_STEP_ID; //긴급단계 id
private String DSSTR_SE_ID; //재해구분 id
private String DSSTR_SE_NM; //재해구분 명

public MessageResponse(String MSG_CN, String CREAT_DT, List<String> RCV_AREA_ID, List<String> 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<String> RCV_AREA_ID, List<String> 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 485c058

Please sign in to comment.