Skip to content

Commit

Permalink
Fix : 최초 채팅방 리스트 조회 시 최신화 리스트 조회 로직 반영
Browse files Browse the repository at this point in the history
- 39번 API 채팅방 리스트 최신화 정렬 변경(최근 시간 순)
  • Loading branch information
HyemIin committed Jan 22, 2024
1 parent 93f22ea commit 2c9b68b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/catchroom/chat/chatroom/type/DealState.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.catchroom.chat.chatroom.type;

public enum DealState {
UNSOLD,ONSALE,EXPIRED,DONEDEAL,UNABLESELL
}

0 comments on commit 2c9b68b

Please sign in to comment.