From 71f4cb6f79d8d49f24480489cb4d7dd5981657a1 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Mon, 15 Jun 2026 18:57:51 +0900 Subject: [PATCH] =?UTF-8?q?Q&A=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81=20-=20InquiryCommentCreatedAdminEve?= =?UTF-8?q?nt=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F=20=EA=B2=BD=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20-=20userName=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20description=20=EC=97=85?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=8A=B8=20-=20inquirySubject=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=A1=9C=EC=A7=81=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InquiryCommentCreatedAdminEvent.java | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/main/java/com/eactive/apim/portal/djb/community/qna/comment/event/InquiryCommentCreatedAdminEvent.java diff --git a/src/main/java/com/eactive/apim/portal/djb/community/qna/comment/event/InquiryCommentCreatedAdminEvent.java b/src/main/java/com/eactive/apim/portal/djb/community/qna/comment/event/InquiryCommentCreatedAdminEvent.java deleted file mode 100644 index 7277aba..0000000 --- a/src/main/java/com/eactive/apim/portal/djb/community/qna/comment/event/InquiryCommentCreatedAdminEvent.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.eactive.apim.portal.djb.community.qna.comment.event; - -import com.eactive.apim.portal.template.entity.MessageCode; -import com.eactive.apim.portal.template.service.MessageEventHandler; -import com.eactive.apim.portal.template.service.MessageRecipient; -import com.eactive.apim.portal.template.service.MessageSendEvent; -import org.springframework.stereotype.Component; - -import java.util.HashMap; -import java.util.Map; - -@Component -public class InquiryCommentCreatedAdminEvent implements MessageEventHandler { - - public static final MessageCode KEY = MessageCode.INQUIRY_COMMENT_CREATED; - - @Override - public MessageCode getKey() { - return KEY; - } - - @Override - public boolean allowAdditionalRecipients() { - return true; - } - - @Override - public String getDisplayName() { - return "Q&A 댓글 등록 알림"; - } - - @Override - public String getDescription() { - return "
사용 가능 변수:

" - + "
- inquiryId: 문의 ID

" - + "
- inquirySubject: 문의 제목

" - + "
- commentContent: 댓글 본문

" - + "
- writerName: 작성자 이름

"; - } - - @Override - public MessageSendEvent createEvent(Object source, MessageRecipient recipient, Map params) { - Map requestParams = new HashMap<>(); - requestParams.put("inquiryId", toStr(params.get("inquiryId"))); - requestParams.put("inquirySubject", toStr(params.get("inquirySubject"))); - requestParams.put("commentContent", toStr(params.get("commentContent"))); - requestParams.put("writerName", toStr(params.get("writerName"))); - return new MessageSendEvent(source, KEY, recipient, requestParams); - } - - private String toStr(Object value) { - return value == null ? "" : value.toString(); - } -}