From 2c9b68b894d2ef1046d220dc19032d9aed9c9bd2 Mon Sep 17 00:00:00 2001 From: HyemIin Date: Mon, 22 Jan 2024 17:52:59 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EC=B5=9C=EC=B4=88=20=EC=B1=84?= =?UTF-8?q?=ED=8C=85=EB=B0=A9=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=EC=8B=9C=20=EC=B5=9C=EC=8B=A0=ED=99=94=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=A1=B0=ED=9A=8C=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 39번 API 채팅방 리스트 최신화 정렬 변경(최근 시간 순) --- .../catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java | 2 ++ .../java/com/catchroom/chat/chatroom/type/DealState.java | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 src/main/java/com/catchroom/chat/chatroom/type/DealState.java diff --git a/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java b/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java index d526efb..e1889cd 100644 --- a/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java +++ b/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java @@ -1,5 +1,6 @@ package com.catchroom.chat.chatroom.dto; +import com.catchroom.chat.chatroom.type.DealState; import com.catchroom.chat.message.dto.ChatMessageDto; import com.catchroom.chat.message.type.UserIdentity; import lombok.AllArgsConstructor; @@ -20,6 +21,7 @@ public class ChatRoomListGetResponse { private String accommodationUrl; private String partnerNickName; private ChatMessageDto lastChatmessageDto; + private DealState dealState; public void updateChatMessageDto(ChatMessageDto chatMessageDto) { this.lastChatmessageDto = chatMessageDto; diff --git a/src/main/java/com/catchroom/chat/chatroom/type/DealState.java b/src/main/java/com/catchroom/chat/chatroom/type/DealState.java new file mode 100644 index 0000000..3ed66bf --- /dev/null +++ b/src/main/java/com/catchroom/chat/chatroom/type/DealState.java @@ -0,0 +1,5 @@ +package com.catchroom.chat.chatroom.type; + +public enum DealState { + UNSOLD,ONSALE,EXPIRED,DONEDEAL,UNABLESELL +}