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 @@ -103,22 +103,22 @@ public MemberDetailsRes details(Member m) {
// 서재: 완독 책
List<BookSimple> finishedBooks = libraries.stream()
.filter(lib -> lib.getStatus() == LibraryStatus.DONE)
.map(lib -> new BookSimple(lib.getIsbn(), lib.getCover()))
.map(lib -> new BookSimple(lib.getIsbn(), lib.getCover(), lib.getTitle()))
.toList();

int finishedCount = finishedBooks.size();

// 서재: 읽고 싶음 책
List<BookSimple> wantBooks = libraries.stream()
.filter(lib -> lib.getStatus() == LibraryStatus.WANT_TO_READ)
.map(lib -> new BookSimple(lib.getIsbn(), lib.getCover()))
.map(lib -> new BookSimple(lib.getIsbn(), lib.getCover(), lib.getTitle()))
.toList();

int wantCount = wantBooks.size();

// 좋아요 LIST
List<BookSimple> likeBooks = bookmarks.stream()
.map(bm -> new BookSimple(String.valueOf(bm.getIsbn()), bm.getCover()))
.map(bm -> new BookSimple(String.valueOf(bm.getIsbn()), bm.getCover(), bm.getTitle()))
.toList();

int likeCount = likeBooks.size();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

public record BookSimple(
String isbn,
String coverUrl
String coverUrl,
String title
) {}