From 7350b539fef04765489259d7386587ef259c4112 Mon Sep 17 00:00:00 2001 From: hs12 Date: Sat, 16 Nov 2024 17:22:01 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20:=20=EC=B1=84=ED=8C=85=20=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=20=ED=95=84=EB=93=9C=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dnd/gongmuin/chat_inquiry/domain/ChatInquiry.java | 2 +- .../dnd/gongmuin/chat_inquiry/dto/CreateChatInquiryRequest.java | 2 +- .../dnd/gongmuin/chat_inquiry/service/ChatInquiryService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/dnd/gongmuin/chat_inquiry/domain/ChatInquiry.java b/src/main/java/com/dnd/gongmuin/chat_inquiry/domain/ChatInquiry.java index 86efde25..5bab80bb 100644 --- a/src/main/java/com/dnd/gongmuin/chat_inquiry/domain/ChatInquiry.java +++ b/src/main/java/com/dnd/gongmuin/chat_inquiry/domain/ChatInquiry.java @@ -54,7 +54,7 @@ public class ChatInquiry extends TimeBaseEntity { @Column(name = "status", nullable = false) private InquiryStatus status; - @Column(name = "message", nullable = false) + @Column(name = "inquiryMessage", nullable = false) private String message; private ChatInquiry(QuestionPost questionPost, Member inquirer, Member answerer, String message) { diff --git a/src/main/java/com/dnd/gongmuin/chat_inquiry/dto/CreateChatInquiryRequest.java b/src/main/java/com/dnd/gongmuin/chat_inquiry/dto/CreateChatInquiryRequest.java index c88d4c2a..a7d93bca 100644 --- a/src/main/java/com/dnd/gongmuin/chat_inquiry/dto/CreateChatInquiryRequest.java +++ b/src/main/java/com/dnd/gongmuin/chat_inquiry/dto/CreateChatInquiryRequest.java @@ -10,6 +10,6 @@ public record CreateChatInquiryRequest( Long answererId, @NotNull(message = "요청 메시지는 필수 입력 항목입니다.") - String message + String inquiryMessage ) { } diff --git a/src/main/java/com/dnd/gongmuin/chat_inquiry/service/ChatInquiryService.java b/src/main/java/com/dnd/gongmuin/chat_inquiry/service/ChatInquiryService.java index 4d8ea017..596b6c90 100644 --- a/src/main/java/com/dnd/gongmuin/chat_inquiry/service/ChatInquiryService.java +++ b/src/main/java/com/dnd/gongmuin/chat_inquiry/service/ChatInquiryService.java @@ -56,7 +56,7 @@ public CreateChatInquiryResponse createChatInquiry(CreateChatInquiryRequest requ Member answerer = getMemberById(request.answererId()); ChatInquiry chatInquiry = chatInquiryRepository.save( - ChatInquiryMapper.toChatInquiry(questionPost, inquirer, answerer, request.message()) + ChatInquiryMapper.toChatInquiry(questionPost, inquirer, answerer, request.inquiryMessage()) ); eventPublisher.publishEvent(