-
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
도서 신청 조회 api #45
도서 신청 조회 api #45
Conversation
public ResponseEntity<List<OrdersResponse>> bookOrders () { | ||
List<OrdersResponse> orders = getBookOrdersService.execute(); | ||
return ResponseEntity.ok(orders); | ||
} |
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.
bookOrders라는 메서드만 봐서는 무슨 역할을 하는 메서드인지 모르겠어요..
이름 다시 생각해보시는게 좋을거같아요!
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.
신청도서 불러오는거라 getBookOrders로 바꿨는데 이건 어떤거 같나요??
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.
직관적이고 좋은 거 같아용
|
||
List<Orders> orders = ordersRepository.findAll(); | ||
|
||
return orders.stream() | ||
.map(ordersConverter::toDto) | ||
.collect(Collectors.toList()); | ||
} |
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.
수정했어요
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를 구현했습니다
📃 작업내용
신청한 도서 목록을 확인할 수 있습니다.
도서부 또는 선생님만 확인할 수 있으며 일반 학생일 경우 예외가 발생합니다
🔀 변경사항
🙋♂️ 질문사항
⚗️ 사용법
🎸 기타