From 06e89053d2922b5404bc418ac2ab4b5424d7d7d9 Mon Sep 17 00:00:00 2001 From: junyong Date: Sun, 7 Sep 2025 20:05:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B1=84=ED=8C=85=20=EA=B8=B0=EB=A1=9D?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8CAPI=20=EB=B0=98=ED=99=98=EA=B0=92=20type?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../busan/domain/chat/dto/websocket/ChatMessageResponseDTO.kt | 4 +++- .../busanVibe/busan/domain/chat/service/ChatMongoService.kt | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/busanVibe/busan/domain/chat/dto/websocket/ChatMessageResponseDTO.kt b/src/main/kotlin/busanVibe/busan/domain/chat/dto/websocket/ChatMessageResponseDTO.kt index ff15f18..e53fdb7 100644 --- a/src/main/kotlin/busanVibe/busan/domain/chat/dto/websocket/ChatMessageResponseDTO.kt +++ b/src/main/kotlin/busanVibe/busan/domain/chat/dto/websocket/ChatMessageResponseDTO.kt @@ -1,5 +1,6 @@ package busanVibe.busan.domain.chat.dto.websocket +import busanVibe.busan.domain.chat.enums.MessageType import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.databind.PropertyNamingStrategies import com.fasterxml.jackson.databind.annotation.JsonNaming @@ -20,7 +21,8 @@ class ChatMessageResponseDTO { val content: String, val dateTime: LocalDateTime?, @get:JsonProperty("is_my") - val isMy: Boolean + val isMy: Boolean, + val type: MessageType ) } \ No newline at end of file diff --git a/src/main/kotlin/busanVibe/busan/domain/chat/service/ChatMongoService.kt b/src/main/kotlin/busanVibe/busan/domain/chat/service/ChatMongoService.kt index 2442785..ab53902 100644 --- a/src/main/kotlin/busanVibe/busan/domain/chat/service/ChatMongoService.kt +++ b/src/main/kotlin/busanVibe/busan/domain/chat/service/ChatMongoService.kt @@ -170,7 +170,8 @@ class ChatMongoService( userImage = user?.profileImageUrl, dateTime = chat.time, content = chat.message, - isMy = user?.id == currentUser.id + isMy = user?.id == currentUser.id, + type = chat.type ) }