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

πŸ”€ :: μ„œλΉ„μŠ€ μ†Œμœ μž μœ„μž„ 쀑 μž¬ν•™μƒ 검증 둜직 #284

Conversation

Umjiseung
Copy link
Contributor

πŸ’‘ κ°œμš”

μ„œλΉ„μŠ€ μ†Œμœ μž μœ„μž„ν•˜λŠ” 쀑에 μœ„μž„μžκ°€ μž¬ν•™μƒμΈμ§€ κ²€μ¦ν•˜λŠ” λ‘œμ§μ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.

πŸ“ƒ μž‘μ—…λ‚΄μš©

  • DelegateOwnerService μ—μ„œ 검증 둜직 μΆ”κ°€

πŸ”€ 변경사항

πŸ™‹β€β™‚οΈ μ§ˆλ¬Έμ‚¬ν•­

βš—οΈ μ‚¬μš©λ²•

🎸 기타

@@ -33,6 +36,9 @@ class DelegateOwnerService(
val delegateUser = userRepository.findByIdOrNull(delegateUserId)
?: throw UserNotFoundException()

if (delegateUser.userRole.any { it.userRoleType != UserRoleType.ROLE_STUDENT })
throw NotValidDelegateUserException()
Copy link
Contributor

Choose a reason for hiding this comment

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

음 NotValidλ³΄λ‹€λŠ” InvalidλΌλŠ” 단어λ₯Ό μ‚¬μš©ν•˜λ©΄ 쒋을 것 κ°™λ„€μš”

Copy link
Contributor Author

Choose a reason for hiding this comment

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

e7d4bff
μˆ˜μ •ν•˜μ˜€μŠ΅λ‹ˆλ‹€

import com.msg.gauth.global.exception.ErrorCode
import com.msg.gauth.global.exception.exceptions.BasicException

class NotValidDelegateUserException: BasicException(ErrorCode.BAD_REQUEST)
Copy link
Contributor

Choose a reason for hiding this comment

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

ErrorCode의 BAD_REQUESTλ₯Ό μ‚¬μš©ν•˜κΈ°λ³΄λ‹€λŠ” μ •ν™•ν•œ λ©”μ‹œμ§€λ₯Ό 남길 수 μžˆλŠ”κ±Έ ErrorCode enum에 μƒˆλ‘œ μΆ”κ°€ν•΄μ£Όμ„Έμš”

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fab0e47
μΆ”κ°€ν•˜μ˜€μŠ΅λ‹ˆλ‹€ ν™•μΈλΆ€νƒλ“œλ €μš”

@Umjiseung Umjiseung merged commit 2d16170 into main Mar 8, 2024
1 check passed
@Umjiseung Umjiseung deleted the 283-feat/service-owner-transfer-during-student-verification-logic-added branch March 8, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1️⃣Priority: High μš°μ„ μˆœμœ„ 상
Projects
None yet
2 participants