From 132486762bc49066fc10237f4e8a1d6b0c72c438 Mon Sep 17 00:00:00 2001 From: sungjiwoon Date: Tue, 23 Jan 2024 17:21:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?style=20:=20=EC=B1=84=ED=8C=85=EB=B0=A9=20p?= =?UTF-8?q?ub=20=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/catchroom/chat/global/pubsub/RedisSubscriber.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/catchroom/chat/global/pubsub/RedisSubscriber.java b/src/main/java/com/catchroom/chat/global/pubsub/RedisSubscriber.java index f98b9d5..b5fac3f 100644 --- a/src/main/java/com/catchroom/chat/global/pubsub/RedisSubscriber.java +++ b/src/main/java/com/catchroom/chat/global/pubsub/RedisSubscriber.java @@ -49,7 +49,10 @@ public void sendRoomList(String publishMessage) { objectMapper.readValue(publishMessage, MessageSubDto.class).getList(); sortChatRoomListLatest(chatRoomListGetResponseList); - log.info("chatRoomList : {}", chatRoomListGetResponseList); + log.info("chat Room List Sub : "); + for (ChatRoomListGetResponse dto : chatRoomListGetResponseList) { + log.info("room Id {}, buyerState : {}, sellerState : {}", dto.getChatRoomNumber(), dto.getBuyerState(), dto.getSellerState()); + } // 로그인 유저 채팅방 리스트 최신화 messagingTemplate.convertAndSend("/sub/chat/roomlist/" + chatMessage.getUserId(), chatRoomListGetResponseList); From 68cd4a77cf9752d46c46dca307d8c38fd2fddbb6 Mon Sep 17 00:00:00 2001 From: sungjiwoon Date: Tue, 23 Jan 2024 17:40:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat=20:=20=EC=B1=84=ED=8C=85=EB=B0=A9=20?= =?UTF-8?q?=EB=A3=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat/chatroom/dto/ChatRoomListGetResponse.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 7c4708b..0753f2e 100644 --- a/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java +++ b/src/main/java/com/catchroom/chat/chatroom/dto/ChatRoomListGetResponse.java @@ -18,14 +18,22 @@ public class ChatRoomListGetResponse { private Long buyerId; private Long sellerId; private Long productId; + + private String accommodationName; + private int sellPrice; + private UserIdentity loginUserIdentity; private String accommodationUrl; + private String partnerNickName; - private ChatMessageDto lastChatmessageDto; + private DealState dealState; private ChatRoomState buyerState; private ChatRoomState sellerState; + private ChatMessageDto lastChatmessageDto; + + public void updateChatMessageDto(ChatMessageDto chatMessageDto) { this.lastChatmessageDto = chatMessageDto; }