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

[Feature/25] 보틀 상세 정보 조회 API를 구현한다 #26

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

miseongk
Copy link
Member

💡 이슈 번호

close: #25

✨ 작업 내용

보틀의 상세 정보를 조회하는 API를 구현했습니다.

🚀 전달 사항

@miseongk miseongk requested a review from injoon2019 July 23, 2024 06:50
@miseongk miseongk self-assigned this Jul 23, 2024
Copy link
Collaborator

@injoon2019 injoon2019 left a comment

Choose a reason for hiding this comment

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

고생하셨어요! 저보다 훨씬 잘하시네요! 🚀


@Transactional(readOnly = true)
fun getBottle(bottleId: Long): Bottle {
return bottleRepository.findByIdOrNull(bottleId) ?: throw IllegalArgumentException("존재하지 않는 보틀입니다.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit) 저희가 예외 메시지를 던지면 클라이언트에서는 그걸로 모달창을 보여줄거에요! 서비스를 잘 모르는 유저 입장에서 "존재하지 않는 보틀입니다." 라고 했을 때 이해를 못할 수도 있을거 같은데 더 좋은 문구가 떠오르면 수정해도 좋아요!

디자인 시안을 봤을 때 전체적으로 ~해요 체를 쓰는거 같아서 문구를 맞춰도 좋을거 같아요. 당장 중요한건 아닙니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

오 그렇네요!! 감사해요 수정했어요!

@miseongk miseongk merged commit 8a5b36a into develop Jul 23, 2024
1 check passed
@miseongk miseongk deleted the feature/25 branch July 23, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

보틀 상세 정보 조회 API를 구현한다
2 participants