-
Notifications
You must be signed in to change notification settings - Fork 3
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] 게시물 통계 기능 구현 #20
Conversation
- Q클래스 폴더 ignore 처리
- StatParam : 사용하지 않는 Exception 제거 - Handler : 잘못된 import 변경
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.
수고하셨습니다!
* and m.account = 'user1'; | ||
*/ | ||
public Long statistics(StatParam param) { | ||
var selectQuery = switch (param.value()) { |
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.
var
키워드를 사용해본적이 별로 없어서 왜 var
를 사용하신건지 궁금합니다.
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.
저는 코드의 간결성과 타입을 굳이 몰라도 될 때 사용하고 있습니다! 여기서는 selectQuery가 JPAQuery 타입인데, 보는 사람입장에서는 오히려 JPAQuery 타입이 생소하게 느껴질 것 같아 가독성있게 var를 사용했습니당~
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.
수고하셨습니다! 혹시 브렌치를 dev가 아닌 기능 브렌치에 넣는 이유가 있을까요?
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.
수고하셨습니다!
Issue
PR 타입(하나 이상의 PR 타입을 선택해주세요)
반영 브랜치
ex) feat/statistics -> refactor/modify_post_entity
변경 사항
테스트 결과
Request
Response : 성공시
Response : 실패시
400 BadRequestException