-
Notifications
You must be signed in to change notification settings - Fork 2
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
[#145 ] 책장 좋아요 개수 추가 & 내가 좋아요한 책장 list 조회 #166
Conversation
…m-Gaerval-Dadok-BE into feature/bookshelf_like
Jacoco Test Coverage Reports
|
repository test case 추가해서 BookshelfSupportImpl.java 커버리지 92%까지 올렸습니다~ |
Long likeCount, Long userId, String username, | ||
String userNickname, String userProfileImage, JobGroup jobGroup, JobGroup.JobName jobName, int order) { | ||
Long likeCount, boolean isLiked, Long userId, String username, | ||
String userNickname, String userProfileImage, JobGroup jobGroup, JobGroup.JobName jobName, Integer order) { |
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.
order를 boxing한 형태로 변경하신 것 좋네요! 현재는 원시타입인 isLiked
도 통일하면 좋을것 같습니다.
user.profileImage.as("userProfileImage"), | ||
job.jobGroup, job.jobName, job.sortOrder | ||
) | ||
public Optional<BookShelfDetailResponse> findByIdWithUserAndJob(Long ownerId, Long userId) { |
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.
메소드 이름이 findByIdWithUserAndJob
인데, 실제로는 ownerId와 userId를 기반으로 여러 테이블에서 데이터를 가져오는 메소드로 보여집니다! 메소드 이름을 더 명확하게 지정하는 것이 좋을것 같아요.
🍀 목적
책장 list 응답에 좋아요 개수 추가
내가 좋아요한 책장 list api 추가
#145