Skip to content

Commit

Permalink
Merge pull request #48 from catchroom/develop
Browse files Browse the repository at this point in the history
Develop 배포
  • Loading branch information
sungjiwoon authored Jan 23, 2024
2 parents 39f6e62 + 68cd4a7 commit 514dd86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 514dd86

Please sign in to comment.