Skip to content

Conversation

@rhkr8521
Copy link
Member

📣 Related Issue

📝 Summary

  • 데이터베이스에 저장되어있는 책 상세 정보 조회 기능을 구현하였습니다.
  • 게시글 등록 시 읽은 책장에 자동 등록되는 기능을 구현하였습니다.
  • 읽은 책, 읽고 싶은 책 책장 전체 조회 기능을 구현하였습니다.

📬 Reference

[ 구현한 API ]
image
image
image

Comment on lines 12 to 25
public class DoneReadBookshelfItemDTO {
private Long articleId; // 게시글 ID
private String isbn; // ISBN
private String title; // 책 제목
private String author; // 저자
private String bookImage; // 표지 이미지
private String publisher; // 출판사
private String description; // 책 소개
private String pubdate; // 출판연도
private Double ratingAverage; // 별점 평균
private Integer ratingCount; // 별점 개수
private Float weight; // 두께
private Float height; // 높이
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 DTO = 읽은 책 책장에 표시되는 책 정보에 대한 DTO로 이해했는데 맞을까요?
맞다면, 읽은 책 책장 페이지에서 필요한 정보는 [도서명, 별점, 두께, 높이, 게시글 ID, {해당 도서로 작성된 게시글 개수}] 인데 다른 정보도 같이 보내주는 이유가 무엇인지 여쭤봐도 될까요?

Comment on lines 106 to 117
private BookDTO convertToBookDTO(Book book) {
return BookDTO.builder()
.isbn(book.getIsbn())
.title(book.getTitle())
.author(book.getAuthor())
.bookImage(book.getBookImage())
.publisher(book.getPublisher())
.description(book.getDescription())
.pubdate(book.getPubdate())
.ratingAverage(book.getRatingAverage())
.ratingCount(book.getRatingCount())
.build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

읽고 싶은 책장도 페이지에서 필요로 하는 정보는 [isbn, 책 표지] 뿐인데 기타 정보들도 같이 넘겨주는 이유가 있을까요?

Copy link
Contributor

@gogori6565 gogori6565 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@gogori6565 gogori6565 merged commit d78fb77 into develop Dec 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 읽은 책 책장, 책 상세 조회 구현

3 participants