generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from GSM-MSG/feature/#53_set_up_netword_on_bbo…
…zzak_sign_up_part 🔀 :: (#53) - Set up network on bbozzak teacher sign up part
- Loading branch information
Showing
8 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/com/msg/domain/auth/SignUpBbozzakTeacherUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.msg.domain.auth | ||
|
||
import com.msg.data.repository.auth.AuthRepository | ||
import com.msg.model.remote.request.auth.SignUpBbozzakTeacherRequest | ||
import javax.inject.Inject | ||
|
||
class SignUpBbozzakTeacherUseCase @Inject constructor( | ||
private val authRepository: AuthRepository | ||
) { | ||
suspend operator fun invoke(body: SignUpBbozzakTeacherRequest) = runCatching { | ||
authRepository.signUpBbozzakTeacher(body = body) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
core/model/src/main/java/com/msg/model/remote/request/auth/SignUpBbozzakTeacherRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.msg.model.remote.request.auth | ||
|
||
import com.msg.model.remote.enumdatatype.HighSchool | ||
|
||
data class SignUpBbozzakTeacherRequest( | ||
val email: String, | ||
val name: String, | ||
val phoneNumber: String, | ||
val password: String, | ||
val highSchool: HighSchool, | ||
val clubName: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters