-
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/#119] λ§μ΄νμ΄μ§ μ 보 μλ²ν΅μ ꡬν
- Loading branch information
Showing
10 changed files
with
104 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
data/src/main/java/com/terning/data/datasource/MyPageDataSource.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,9 +1,13 @@ | ||
package com.terning.data.datasource | ||
|
||
import com.terning.data.dto.BaseResponse | ||
import com.terning.data.dto.NonDataBaseResponse | ||
import com.terning.data.dto.response.MyPageResponseDto | ||
|
||
interface MyPageDataSource { | ||
suspend fun postLogout(): NonDataBaseResponse | ||
|
||
suspend fun deleteQuit(): NonDataBaseResponse | ||
|
||
suspend fun getProfile(): BaseResponse<MyPageResponseDto> | ||
} |
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
15 changes: 15 additions & 0 deletions
15
data/src/main/java/com/terning/data/dto/response/MyPageResponseDto.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,15 @@ | ||
package com.terning.data.dto.response | ||
|
||
import com.terning.domain.entity.response.MyPageProfileModel | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class MyPageResponseDto( | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("authType") | ||
val authType: String | ||
) | ||
|
||
fun MyPageResponseDto.toMyPageProfileModel() = MyPageProfileModel(name = name, 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
6 changes: 6 additions & 0 deletions
6
domain/src/main/java/com/terning/domain/entity/response/MyPageProfileModel.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,6 @@ | ||
package com.terning.domain.entity.response | ||
|
||
data class MyPageProfileModel( | ||
val name: String, | ||
val authType: String | ||
) |
8 changes: 6 additions & 2 deletions
8
domain/src/main/java/com/terning/domain/repository/MyPageRepository.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,7 +1,11 @@ | ||
package com.terning.domain.repository | ||
|
||
import com.terning.domain.entity.response.MyPageProfileModel | ||
|
||
interface MyPageRepository { | ||
suspend fun postLogout() : Result<Unit> | ||
suspend fun postLogout(): Result<Unit> | ||
|
||
suspend fun deleteQuit(): Result<Unit> | ||
|
||
suspend fun deleteQuit() : Result<Unit> | ||
suspend fun getProfile(): Result<MyPageProfileModel> | ||
} |
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