Skip to content

Commit

Permalink
feat: 누락된 데이터 추가
Browse files Browse the repository at this point in the history
Related to: #136
  • Loading branch information
rudeh1253 committed Dec 30, 2024
1 parent 313f17e commit 4e8f184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.hf.healthfriend.domain.matching.constant.MatchingStatus;
import lombok.Builder;

import java.time.LocalDateTime;

@Builder
public record ChatroomListResponseDto(
Long chatroomId,
Expand All @@ -11,6 +13,7 @@ public record ChatroomListResponseDto(
String opponentParticipantProfileImageUrl,
MatchingStatus matchingStatus,
String lastChatMessage,
LocalDateTime chatSentTime,
Integer unreadMessageCount
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public List<ChatroomListResponseDto> getChatroomList(Long participantId,
.opponentParticipantProfileImageUrl(this.fileUrlResolver.resolveFileUrl(dto.opponentParticipantProfileImageUrl()))
.matchingStatus(dto.matchingStatus())
.lastChatMessage(dto.chatroom().getLastChatMessage().getMessageAsText())
.chatSentTime(dto.chatroom().getCreationTime()) // lastModified를 반환하는 게 맞을까?
.unreadMessageCount(dto.chatroom().getUnreadMessageCount())
.build()
)
Expand Down

0 comments on commit 4e8f184

Please sign in to comment.