-
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.
[FEAT/#88] ํ์๊ฐ์ ๋ทฐ / ์๋ฒํต์ ๊ตฌํ
- Loading branch information
Showing
23 changed files
with
246 additions
and
59 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
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
22 changes: 22 additions & 0 deletions
22
data/src/main/java/com/terning/data/dto/request/SignUpRequestDto.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,22 @@ | ||
package com.terning.data.dto.request | ||
|
||
import com.terning.domain.entity.request.SignUpRequestModel | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class SignUpRequestDto( | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("profileImage") | ||
val profileImage: Int, | ||
@SerialName("authType") | ||
val authType: String | ||
) | ||
|
||
fun SignUpRequestModel.toSignUpRequestDto(): SignUpRequestDto = | ||
SignUpRequestDto( | ||
name = name, | ||
profileImage = profileImage, | ||
authType = authType | ||
) |
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
24 changes: 24 additions & 0 deletions
24
data/src/main/java/com/terning/data/dto/response/SignUpResponseDto.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,24 @@ | ||
package com.terning.data.dto.response | ||
|
||
import com.terning.domain.entity.response.SignUpResponseModel | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class SignUpResponseDto( | ||
@SerialName("accessToken") | ||
val accessToken: String, | ||
@SerialName("refreshToken") | ||
val refreshToken: String, | ||
@SerialName("userId") | ||
val userId: Long, | ||
@SerialName("authType") | ||
val authType: String, | ||
) { | ||
fun toSignUpModel() = SignUpResponseModel( | ||
accessToken = accessToken, | ||
refreshToken = refreshToken, | ||
userId = userId, | ||
authType = authType | ||
) | ||
} |
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
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/terning/domain/entity/request/SignUpRequestModel.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 com.terning.domain.entity.request | ||
|
||
data class SignUpRequestModel ( | ||
val name : String, | ||
val profileImage : Int, | ||
val authType : String | ||
) |
7 changes: 4 additions & 3 deletions
7
domain/src/main/java/com/terning/domain/entity/response/SignInResponseModel.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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package com.terning.domain.entity.response | ||
|
||
data class SignInResponseModel( | ||
val accessToken : String? , | ||
val refreshToken : String?, | ||
val userId : Long, | ||
val accessToken: String?, | ||
val refreshToken: String?, | ||
val userId: Long?, | ||
val authId: String, | ||
val authType: String | ||
) |
8 changes: 8 additions & 0 deletions
8
domain/src/main/java/com/terning/domain/entity/response/SignUpResponseModel.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 com.terning.domain.entity.response | ||
|
||
data class SignUpResponseModel( | ||
val accessToken: String, | ||
val refreshToken: String, | ||
val userId: Long, | ||
val authType: String | ||
) |
9 changes: 9 additions & 0 deletions
9
domain/src/main/java/com/terning/domain/repository/AuthRepository.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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package com.terning.domain.repository | ||
|
||
import com.terning.domain.entity.request.SignInRequestModel | ||
import com.terning.domain.entity.request.SignUpRequestModel | ||
import com.terning.domain.entity.response.SignInResponseModel | ||
import com.terning.domain.entity.response.SignUpResponseModel | ||
|
||
interface AuthRepository { | ||
|
||
suspend fun postSignIn( | ||
authorization: String, | ||
request: SignInRequestModel | ||
): Result<SignInResponseModel> | ||
|
||
suspend fun postSignUp( | ||
authId: String, | ||
request: SignUpRequestModel | ||
): Result<SignUpResponseModel> | ||
|
||
} |
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
7 changes: 0 additions & 7 deletions
7
feature/src/main/java/com/terning/feature/onboarding/signin/SignInState.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.