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

feat: Form request API #41

Merged
merged 2 commits into from
Feb 2, 2024
Merged

feat: Form request API #41

merged 2 commits into from
Feb 2, 2024

Conversation

Park-Young-Hun
Copy link
Member

๐Ÿ“ Summary

  • Form request API

๐Ÿ‘ฉโ€๐Ÿ’ป Contents

  • ํƒ‘์Šน์š”์ฒญ ๊ธฐ๋Šฅ ๊ตฌํ˜„

๐Ÿ“ Review Note

๐Ÿ“ฃ Related Issue

Comment on lines 29 to 30
Carpool carpool = carpoolRepository.findByCarpoolIdAndIsDeleted(carpoolId, false)
.orElseThrow(() -> new CustomException(ErrorCode.NOT_EXIST_CARPOOL));
Copy link
Member

Choose a reason for hiding this comment

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

CarpoolService์—๋„ findByCarpoolIdAndIsDeleted ํ•จ์ˆ˜๊ฐ€ ๋ฐ˜๋ณต๋ผ์„œ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋Š”๋ฐ, CarpoolRepository์—์„œ default method๋กœ ์ข€ ๋” ๊น”๋”ํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜๋Š” ๊ฑด ์–ด๋–จ๊นŒ์š”??

ex)
default Member findByIdAndIsDeletedOrThrow(MemberId id, boolean isDeleted) {
return findByIdAndIsDeleted(id, isDeleted)
.orElseThrow(() -> new CustomException(ErrorCode.NOT_EXIST_USER));
}

Copy link
Member Author

Choose a reason for hiding this comment

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

์ข‹์€ ๋ฆฌ๋ทฐ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค~

Copy link
Member

@Seokyeong237 Seokyeong237 left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘

@Park-Young-Hun Park-Young-Hun merged commit b05a9fb into develop Feb 2, 2024
1 check passed
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.

feat: Form request API
2 participants