Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
public record RecordSearchResponse(
List<PostDto> postList,
Long roomId,
String isbn,
String nextCursor,
Boolean isLast
){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public RecordSearchResponse search(RecordSearchQuery recordSearchQuery) {
// RecordSearchResponse 생성
return RecordSearchResponse.builder()
.roomId(roomId)
.isbn(book.getIsbn())
.postList(postDtos)
.nextCursor(cursorBasedList.nextCursor())
.isLast(!cursorBasedList.hasNext())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public record RoomDto(
Long roomId,
String bookImageUrl,
String roomName,
int recruitCount, // 방 최대 인원 수
int memberCount,
String deadlineDate
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public List<RoomQueryDto> findRoomsByCategoryOrderByStartDateAsc(String category
room.roomId,
book.imageUrl,
room.title,
room.recruitCount,
room.memberCount,
room.startDate
))
Expand All @@ -362,6 +363,7 @@ public List<RoomQueryDto> findRoomsByCategoryOrderByMemberCount(String categoryV
room.roomId,
book.imageUrl,
room.title,
room.recruitCount,
room.memberCount,
room.startDate
))
Expand Down Expand Up @@ -425,6 +427,7 @@ private List<RoomQueryDto> fetchMyRooms(
room.roomId,
book.imageUrl,
room.title,
room.recruitCount,
room.memberCount,
cursorExpr
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public record RoomQueryDto(
Long roomId,
String bookImageUrl,
String roomName,
int recruitCount, // 방 최대 인원 수
int memberCount,
LocalDate endDate // 방 진행 마감일 or 방 모집 마감일
) {
Expand All @@ -20,6 +21,7 @@ public record RoomQueryDto(
Assert.notNull(bookImageUrl, "bookImageUrl must not be null");
Assert.notNull(roomName, "roomName must not be null");
Assert.notNull(endDate, "endDate must not be null");
Assert.isTrue(recruitCount > 0, "recruitCount must be greater than 0");
Assert.isTrue(memberCount >= 0, "memberCount must be greater than or equal to 0");
}
}
Loading