Skip to content

Commit

Permalink
#86 feat : refreshTokenRequest 구조 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
yy0ung committed Nov 23, 2023
1 parent 2e54e0d commit cc0ea52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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?
)
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>>
}

0 comments on commit cc0ea52

Please sign in to comment.