-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: 게시물 좋아요, 공유 수 올리는 service, controller 계층 구현 #32
Conversation
…d-backend into feature/initial-setup
…d-backend into feature/initial-setup
…d-backend into feature/initial-setup
📊 Jacoco Test Coverage
|
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.
고생하셨습니다! 전체적으로 코드를 깔끔하게 작성해주셔서 리뷰하면서 이해하기 쉬워서 좋았습니다👍
approve 할게요🤗
@@ -28,4 +34,20 @@ public BaseApiResponse<PostSearchRes> getPosts( | |||
return new BaseApiResponse<>(HttpStatus.OK, StatusCode.OK.getMessage(), res); | |||
} | |||
|
|||
// 좋아요 수 증가시키는 api | |||
@ResponseStatus(HttpStatus.OK) | |||
@PatchMapping("/{postId}/like") |
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.
💭 잘은 모르지만 저희 like
로 단수형일까요?
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.
넵! 저번에 테크스택 작성할 때 그렇게 작성했어서 우선 저렇게 해두었습니다! 혹시 복수형으로 변경하는 게 더 좋을까요?
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.
엇 아니요! 제가 잘 몰라서 여쭤본거라 편하게 해주셔도 좋을 것 같아요
@Service | ||
@Transactional(readOnly = true) | ||
@RequiredArgsConstructor | ||
@Slf4j |
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.
❓ PostService
에서는 아직 log를 안 찍으시는 것 같은데 혹시 다른 용도로 넣으신건지 궁금합니다!
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.
아 지워두겠습니다! log 찍어보고 안 지웠나봐요! 감사합니다:)
📊 Jacoco Test Coverage
|
📊 Jacoco Test Coverage
|
📊 Jacoco Test Coverage
|
// 외부 API 호출 | ||
facebookAdapter.increaseLikeCount(postId); | ||
twitterAdapter.increaseLikeCount(postId); | ||
instagramAdapter.increaseLikeCount(postId); | ||
} |
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.
🚨
각 포스트의 타입의 맞는 api를 호출해야될것 같아요
그리고 스레드가 빠져있습니다!
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.
말씀해주셔서 감사합니다! 해당 부분 수정했습니다.
ff94cb2
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.
스레드 아직 추가 안된 것 같아요!
src/main/java/team05/integrated_feed_backend/module/post/event/LikeCountIncreaseEvent.java
Outdated
Show resolved
Hide resolved
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.
고생하셨습니다 👍
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.
테스트가 깔끔하네용!👍🏻 많이 배워갑니다
…d-backend into feature/post-like&share-increase # Conflicts: # src/main/java/team05/integrated_feed_backend/module/post/entity/Post.java
📊 Jacoco Test Coverage
|
📊 Jacoco Test Coverage
|
🎟️ 관련 이슈
Resolves #22
👩💻 구현 내용
💬 코멘트
@RestControllerAdvice
GlobalExceptionHandler
에 추가하였습니다.💭 고려한 점