Skip to content

Commit

Permalink
[add] #147 모임 목록 조회시 마지막 채팅 필드값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ehs208 authored and seokjun01 committed Feb 1, 2025
1 parent 14ea8d7 commit df15f61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ private ConstructorExpression<MeetingListResponseDto> createDeliveryMeetingProje
meeting.participantLimit.maxParticipants,
deliveryMeeting.storeName.as("location"),
meeting.createdAt,
deliveryMeeting.orderDeadline.as("dueDateTime")
deliveryMeeting.orderDeadline.as("dueDateTime"),
meeting.chatRoom.lastChatAt
);
}

Expand All @@ -326,7 +327,8 @@ private ConstructorExpression<MeetingListResponseDto> createOfflineMeetingProjec
meeting.participantLimit.maxParticipants,
offlineMeeting.meetingPlace.as("location"),
meeting.createdAt,
offlineMeeting.meetingDate.as("dueDateTime")
offlineMeeting.meetingDate.as("dueDateTime"),
meeting.chatRoom.lastChatAt
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ public class MeetingListResponseDto {
private String location;
private LocalDateTime createdAt;
private LocalDateTime dueDateTime;
private LocalDateTime lastChatAt;

public MeetingListResponseDto(Long meetingId, String meetingName, String meetingDescription,
Long currentParticipantCount, Long maxParticipants, String location, LocalDateTime createdAt,
LocalDateTime dueDateTime) {
LocalDateTime dueDateTime, LocalDateTime lastChatAt) {
this.meetingId = meetingId;
this.meetingName = meetingName;
this.meetingDescription = meetingDescription;
Expand All @@ -26,6 +27,7 @@ public MeetingListResponseDto(Long meetingId, String meetingName, String meeting
this.location = location;
this.createdAt = createdAt;
this.dueDateTime = dueDateTime;
this.lastChatAt = lastChatAt;
}
}

0 comments on commit df15f61

Please sign in to comment.