forked from yy0ung/nibobnebob
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: BENDENG1 <[email protected]> Co-authored-by: yy0ung <[email protected]>
- Loading branch information
1 parent
46a89f2
commit 48c0bc7
Showing
16 changed files
with
30 additions
and
27 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
1 change: 0 additions & 1 deletion
1
...vengers/nibobnebob/data/model/ApiState.kt → ...engers/nibobnebob/data/model/BaseState.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
5 changes: 4 additions & 1 deletion
5
Aos/app/src/main/java/com/avengers/nibobnebob/data/model/response/BaseResponse.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,10 @@ | ||
package com.avengers.nibobnebob.data.model.response | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class BaseResponse<T>( | ||
val data: T, | ||
@SerializedName("data") | ||
val body: T, | ||
val message: String, | ||
val statusCode: Int, | ||
) |
6 changes: 0 additions & 6 deletions
6
Aos/app/src/main/java/com/avengers/nibobnebob/data/model/response/MyInfoResponse.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
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
3 changes: 2 additions & 1 deletion
3
Aos/app/src/main/java/com/avengers/nibobnebob/data/remote/RefreshApi.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,12 @@ | ||
package com.avengers.nibobnebob.data.remote | ||
|
||
import com.avengers.nibobnebob.data.model.response.BaseResponse | ||
import com.avengers.nibobnebob.data.model.response.NaverLoginResponse | ||
import retrofit2.Response | ||
import retrofit2.http.POST | ||
|
||
interface RefreshApi { | ||
|
||
@POST("토큰 갱신 url") | ||
suspend fun refreshToken(refreshToken : String) : Response<NaverLoginResponse> | ||
suspend fun refreshToken(refreshToken : String) : Response<BaseResponse<NaverLoginResponse>> | ||
} |
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
5 changes: 3 additions & 2 deletions
5
Aos/app/src/main/java/com/avengers/nibobnebob/data/repository/ValidationRepository.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,16 +1,17 @@ | ||
package com.avengers.nibobnebob.data.repository | ||
|
||
import com.avengers.nibobnebob.data.model.BaseState | ||
import com.avengers.nibobnebob.data.model.response.BaseResponse | ||
import com.avengers.nibobnebob.data.model.response.ValidateResponse | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface ValidationRepository { | ||
|
||
fun nickValidation( | ||
nickName: String | ||
): Flow<BaseState<ValidateResponse>> | ||
): Flow<BaseState<BaseResponse<ValidateResponse>>> | ||
|
||
fun emailValidation( | ||
email: String | ||
): Flow<BaseState<ValidateResponse>> | ||
): Flow<BaseState<BaseResponse<ValidateResponse>>> | ||
} |
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
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