-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#86 feat : refreshTokenRequest 구조 작성
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
Aos/app/src/main/java/com/avengers/nibobnebob/data/model/request/RefreshTokenRequest.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,5 @@ | ||
package com.avengers.nibobnebob.data.model.request | ||
|
||
data class RefreshTokenRequest( | ||
val refreshToken: String? | ||
) |
6 changes: 4 additions & 2 deletions
6
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,12 +1,14 @@ | ||
package com.avengers.nibobnebob.data.remote | ||
|
||
import com.avengers.nibobnebob.data.model.request.RefreshTokenRequest | ||
import com.avengers.nibobnebob.data.model.response.BaseResponse | ||
import com.avengers.nibobnebob.data.model.response.NaverLoginResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
interface RefreshApi { | ||
|
||
@POST("토큰 갱신 url") | ||
suspend fun refreshToken(refreshToken : String) : Response<BaseResponse<NaverLoginResponse>> | ||
@POST("api/auth/refresh-token") | ||
suspend fun refreshToken(@Body refreshToken: RefreshTokenRequest) : Response<BaseResponse<NaverLoginResponse>> | ||
} |