-
Notifications
You must be signed in to change notification settings - Fork 22
[13기] 서병주 과제 제출합니다. #8
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
base: main
Are you sure you want to change the base?
Conversation
7SH7
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.
- 풀더명은 소문자로 해주세요.
- dto에 request, response를 다 넣어도 되지만, request와 response는 controller에서 사용하기 때문에, controller에 넣어서 관리하길 추천드립니다. (병주님이 편하다면, 기존대로 dto에 넣으셔도 무방합니다.)
- Response, Request를 만들어서 처리하는 것에 일관성을 두시고 코딩하기를 추천드립니다.
| .build(); | ||
| } | ||
|
|
||
| public void returnLoan() { |
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.
이런 식으로 domain의 값들을 변경하게 하는 것들은 domain에서 선언해서 처리해주는 것이 좋습니다.
(domain의 값 변화 관련 함수는 domain 해당 파일에 선언해주는 것이 좋음.)
|
|
||
|
|
||
| @PostMapping("/books/{bookId}/checkout") | ||
| public ResponseEntity<String> checkoutBook(@PathVariable long bookId, @RequestBody LoanRequest loanRequest) { |
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.
반환 type은 String 이렇게 말고 Response 형태로 만들어서 보내주세요! (통일성을 위해서)
No description provided.