-
Notifications
You must be signed in to change notification settings - Fork 0
[FEAT] 읽은 책 책장, 책 상세 조회 구현 #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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; // 높이 | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 DTO = 읽은 책 책장에 표시되는 책 정보에 대한 DTO로 이해했는데 맞을까요?
맞다면, 읽은 책 책장 페이지에서 필요한 정보는 [도서명, 별점, 두께, 높이, 게시글 ID, {해당 도서로 작성된 게시글 개수}] 인데 다른 정보도 같이 보내주는 이유가 무엇인지 여쭤봐도 될까요?
| 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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
읽고 싶은 책장도 페이지에서 필요로 하는 정보는 [isbn, 책 표지] 뿐인데 기타 정보들도 같이 넘겨주는 이유가 있을까요?
gogori6565
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
📣 Related Issue
📝 Summary
📬 Reference
[ 구현한 API ]


