-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor(thumbsup): thumbsup 도메인 리팩토링 #97
Conversation
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.
수고하셨습니다.
private final QueryAuthService queryAuthService; | ||
|
||
@LoginRequired | ||
@PostMapping("/create") |
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.
create를 지우는 편이 더 restful한거 같습니다!!
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.
헉 맞네요 고맙습니다
.toList(); | ||
} | ||
|
||
@GetMapping("/{title}") |
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.
docs에 관련된 조회 api에서 docsId와 docsTitle 2가지를 사용하는데 통일 하는건 어떨까요?
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.
그리고 2가지 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.
통일감을 주는 건 좋을 것 같아요! 그러나 이 부분은 제가 생각이 조금 다른게,
- 글 제목이 api의 path에 스트링이 오는 것보단, 숫자가 오는게 에러 확률이 더 적고,
- 조회에서 더 빠르고,
- 이미 프론트 백엔드 코드가 완성이 되어있기 때문에
유지하는게 더 좋은 것 같습니다!! 어떻게 생각하시나요?
아 @nested 했을 때 ascii only규칙이 적용되어서 checkstyle에러뜨네여;; |
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 DocsThumbsUpResponseDto(Long thumbsUpsCount) { | ||
public ThumbsUpCountResponseDto(Long thumbsUpsCount) { | ||
this.thumbsUpsCount = thumbsUpsCount; | ||
} |
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.
아니요! class에서 record로 전환하면서 생긴 코드인 것 같습니다. 지우겠습니다!
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.
테스트 코드에서 Assertions static import 정도만 수정하면 좋을 것 같아요. 수고하셨습니당
No description provided.