-
Notifications
You must be signed in to change notification settings - Fork 1
[FEATURE] 리뷰 수정 및 삭제 #263
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
[FEATURE] 리뷰 수정 및 삭제 #263
Conversation
|
|
||
| @Override | ||
| public void deleteReview(UUID volunteerId, Long id) { | ||
| Review review = reviewRepository.findById(id).orElseThrow( |
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.
리뷰 쿼리 유스케이스에 findById가 존재하는데 쿼리 유스케이스를 주입하는건 어떻게 생각하시나요
중복 코드라는 생각이 들어서 말씀드려봤습니다
| } | ||
|
|
||
| private Review getReview(Long id) { | ||
| return reviewRepository.findById(id).orElseThrow( |
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.
이 부분도 봐주셔야할 것 같아서 코멘트 달아놓겠습니다!
m-a-king
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.
수고하셨습니다
|
|
||
| public boolean isAuthor(UUID volunteerId) { | ||
| return this.volunteerId.equals(volunteerId); | ||
| } | ||
|
|
||
| public void updateWith(ReviewUpdateRequestDto dto) { | ||
| this.title = dto.title(); | ||
| this.content = dto.content(); | ||
| } | ||
|
|
||
| public void updateWith(String imgUrl) { | ||
| this.imgUrl = imgUrl; | ||
| } |
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.
저는 이런 부분이 기본적이지만 상당히 느낌이 좋네요..
|
@7zrv @m-a-king @ayoung-dev |
테스트가 없는 지금이 너무 좋네요. |
|
@leebs0521 |
저도 지금은 없어도 될 거 같아요! |
ayoung-dev
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.
고생하셨습니다~
- getById, getDetailById
- getById, getDetailById
- ReviewQueryUseCase 의존하도록 변경
- ReviewQueryUseCase 의존하도록 변경
- ReviewQueryUseCase 의존하도록 변경
c41db0b to
c04d2a0
Compare
|






resolved :
📌 과제 설명
👩💻 요구 사항과 구현 내용
리뷰 삭제 기능
리뷰 수정 기능
리뷰 도메인 리팩토링
✅ PR 포인트 & 궁금한 점
ReviewValidator도입