-
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
[FEAT/#12] 6주차 과제 구현 #13
base: develop
Are you sure you want to change the base?
Conversation
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.
코루틴 야무지게 적용하신 거 너무 좋네요 !! 고생하셨어용 ~~
class SignInUseCase @Inject constructor( | ||
private val signInRepository: SignInRepository | ||
) { | ||
suspend operator fun invoke(user: User): Result<SignInResponse> = | ||
signInRepository.signInUser(user).onFailure { | ||
return Result.failure(Throwable(MESSAGE_FAILURE)) | ||
} | ||
|
||
companion object { | ||
private const val MESSAGE_FAILURE = "아이디 또는 비밀번호가 일치하지 않습니다." | ||
|
||
} | ||
|
||
} |
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.
LGTM~ 🤙 고생하셨습니다~!!
Related issue 🛠
Work Description ✏️
Screenshot 📸
Uncompleted Tasks 😅
To Reviewers 📢