From ebf189834f61523f1fb6f1a764942a3e4a700ff1 Mon Sep 17 00:00:00 2001 From: hyunn522 Date: Thu, 21 Nov 2024 22:02:09 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=9D=98=20=EC=9D=BC=EA=B8=89=EC=BB=AC=EB=A0=89=EC=85=98=20?= =?UTF-8?q?=ED=81=B4=EB=9E=98=EC=8A=A4=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/chat/chatroom/model/{dto => }/ChatRooms.java | 4 ++-- .../domain/chat/chatroom/model/{dto => }/UserChatRooms.java | 3 +-- .../chat/chatroom/service/component/ChatRoomService.java | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) rename src/main/java/space/space_spring/domain/chat/chatroom/model/{dto => }/ChatRooms.java (91%) rename src/main/java/space/space_spring/domain/chat/chatroom/model/{dto => }/UserChatRooms.java (86%) diff --git a/src/main/java/space/space_spring/domain/chat/chatroom/model/dto/ChatRooms.java b/src/main/java/space/space_spring/domain/chat/chatroom/model/ChatRooms.java similarity index 91% rename from src/main/java/space/space_spring/domain/chat/chatroom/model/dto/ChatRooms.java rename to src/main/java/space/space_spring/domain/chat/chatroom/model/ChatRooms.java index b4f153d..d3e22c6 100644 --- a/src/main/java/space/space_spring/domain/chat/chatroom/model/dto/ChatRooms.java +++ b/src/main/java/space/space_spring/domain/chat/chatroom/model/ChatRooms.java @@ -1,4 +1,4 @@ -package space.space_spring.domain.chat.chatroom.model.dto; +package space.space_spring.domain.chat.chatroom.model; import java.time.LocalDateTime; import java.util.HashMap; @@ -6,7 +6,7 @@ import java.util.Objects; import java.util.function.BiFunction; import java.util.function.Function; -import space.space_spring.domain.chat.chatroom.model.ChatRoom; +import space.space_spring.domain.chat.chatroom.model.dto.LastMessageInfoDto; import space.space_spring.domain.chat.chatroom.model.response.ChatRoomResponse; public class ChatRooms { diff --git a/src/main/java/space/space_spring/domain/chat/chatroom/model/dto/UserChatRooms.java b/src/main/java/space/space_spring/domain/chat/chatroom/model/UserChatRooms.java similarity index 86% rename from src/main/java/space/space_spring/domain/chat/chatroom/model/dto/UserChatRooms.java rename to src/main/java/space/space_spring/domain/chat/chatroom/model/UserChatRooms.java index d74d267..0c48608 100644 --- a/src/main/java/space/space_spring/domain/chat/chatroom/model/dto/UserChatRooms.java +++ b/src/main/java/space/space_spring/domain/chat/chatroom/model/UserChatRooms.java @@ -1,9 +1,8 @@ -package space.space_spring.domain.chat.chatroom.model.dto; +package space.space_spring.domain.chat.chatroom.model; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; -import space.space_spring.domain.chat.chatroom.model.UserChatRoom; import space.space_spring.entity.User; public class UserChatRooms { diff --git a/src/main/java/space/space_spring/domain/chat/chatroom/service/component/ChatRoomService.java b/src/main/java/space/space_spring/domain/chat/chatroom/service/component/ChatRoomService.java index 0326f5a..ce168e8 100644 --- a/src/main/java/space/space_spring/domain/chat/chatroom/service/component/ChatRoomService.java +++ b/src/main/java/space/space_spring/domain/chat/chatroom/service/component/ChatRoomService.java @@ -5,8 +5,8 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import space.space_spring.domain.chat.chatroom.model.ChatRoom; -import space.space_spring.domain.chat.chatroom.model.dto.ChatRooms; -import space.space_spring.domain.chat.chatroom.model.dto.UserChatRooms; +import space.space_spring.domain.chat.chatroom.model.ChatRooms; +import space.space_spring.domain.chat.chatroom.model.UserChatRooms; import space.space_spring.domain.chat.chatroom.model.response.ChatRoomResponse; import space.space_spring.domain.chat.chatroom.model.response.ChatSuccessResponse; import space.space_spring.domain.chat.chatroom.model.response.CreateChatRoomResponse;