-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
68 additions
and
18 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
12 changes: 12 additions & 0 deletions
12
data/auth/src/main/java/org/sopt/official/data/auth/mapper/SignUpMapper.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 org.sopt.official.data.auth.mapper | ||
|
||
import org.sopt.official.data.auth.remote.request.SignUpRequest | ||
import org.sopt.official.domain.auth.model.SignUpCode | ||
|
||
fun SignUpCode.toRequest(): SignUpRequest = | ||
SignUpRequest( | ||
name = name, | ||
phone = phone, | ||
code = code, | ||
authPlatform = authPlatform | ||
) |
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
16 changes: 16 additions & 0 deletions
16
data/auth/src/main/java/org/sopt/official/data/auth/remote/request/SignUpRequest.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,16 @@ | ||
package org.sopt.official.data.auth.remote.request | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class SignUpRequest ( | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("phone") | ||
val phone: String, | ||
@SerialName("code") | ||
val code: String, | ||
@SerialName("authPlatform") | ||
val authPlatform: String | ||
) |
14 changes: 0 additions & 14 deletions
14
data/auth/src/main/java/org/sopt/official/data/auth/remote/response/CreateCodeResponse.kt
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
domain/auth/src/main/java/org/sopt/official/domain/auth/model/OriginalInformation.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,7 @@ | ||
package org.sopt.official.domain.auth.model | ||
|
||
data class OriginalInformation( | ||
val phone: String, | ||
val authPlatform: String, | ||
val code: String, | ||
) |
8 changes: 8 additions & 0 deletions
8
domain/auth/src/main/java/org/sopt/official/domain/auth/model/SignUpCode.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,8 @@ | ||
package org.sopt.official.domain.auth.model | ||
|
||
data class SignUpCode( | ||
val name: String, | ||
val phone: String, | ||
val code: String, | ||
val authPlatform: 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