Skip to content
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

Merged
merged 5 commits into from
Apr 7, 2024
Merged

도서 신청 조회 api #45

merged 5 commits into from
Apr 7, 2024

Conversation

ta2ye0n
Copy link
Contributor

@ta2ye0n ta2ye0n commented Apr 7, 2024

💡 개요

신청한 도서 목록을 조회하는 api를 구현했습니다

📃 작업내용

신청한 도서 목록을 확인할 수 있습니다.
도서부 또는 선생님만 확인할 수 있으며 일반 학생일 경우 예외가 발생합니다

🔀 변경사항

🙋‍♂️ 질문사항

⚗️ 사용법

🎸 기타

@ta2ye0n ta2ye0n self-assigned this Apr 7, 2024
@ta2ye0n ta2ye0n linked an issue Apr 7, 2024 that may be closed by this pull request
public ResponseEntity<List<OrdersResponse>> bookOrders () {
List<OrdersResponse> orders = getBookOrdersService.execute();
return ResponseEntity.ok(orders);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bookOrders라는 메서드만 봐서는 무슨 역할을 하는 메서드인지 모르겠어요..
이름 다시 생각해보시는게 좋을거같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0837399

신청도서 불러오는거라 getBookOrders로 바꿨는데 이건 어떤거 같나요??

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

직관적이고 좋은 거 같아용

Comment on lines 35 to 41

List<Orders> orders = ordersRepository.findAll();

return orders.stream()
.map(ordersConverter::toDto)
.collect(Collectors.toList());
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 코드 줄일 수 있을 거 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

05ad81b

수정했어요

Copy link
Member

@Umjiseung Umjiseung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨어용

@ta2ye0n ta2ye0n merged commit b295ea3 into develop Apr 7, 2024
1 check passed
@ta2ye0n ta2ye0n deleted the 44-get-book-orders-api branch April 7, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

도서 신청 조회 api
2 participants