File tree Expand file tree Collapse file tree
data/src/main/java/com/threegap/bitnagil/data/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package com.threegap.bitnagil.data.auth.datasourceimpl
33import com.threegap.bitnagil.data.auth.datasource.AuthRemoteDataSource
44import com.threegap.bitnagil.data.auth.model.request.LoginRequestDto
55import com.threegap.bitnagil.data.auth.model.request.TermsAgreementRequestDto
6- import com.threegap.bitnagil.data.auth.model.request.WithdrawalReasonResponse
6+ import com.threegap.bitnagil.data.auth.model.request.WithdrawalReasonRequest
77import com.threegap.bitnagil.data.auth.model.response.LoginResponseDto
88import com.threegap.bitnagil.data.auth.service.AuthService
99import com.threegap.bitnagil.data.common.safeApiCall
@@ -30,7 +30,7 @@ class AuthRemoteDataSourceImpl @Inject constructor(
3030
3131 override suspend fun withdrawal (reason : String ): Result <Unit > =
3232 safeUnitApiCall {
33- authService.postWithdrawal(WithdrawalReasonResponse (reason))
33+ authService.postWithdrawal(WithdrawalReasonRequest (reason))
3434 }
3535
3636 override suspend fun reissueToken (refreshToken : String ): Result <LoginResponseDto > =
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import kotlinx.serialization.SerialName
44import kotlinx.serialization.Serializable
55
66@Serializable
7- data class WithdrawalReasonResponse (
7+ data class WithdrawalReasonRequest (
88 @SerialName(" reasonOfWithdrawal" ) val reasonOfWithdrawal : String ,
99)
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package com.threegap.bitnagil.data.auth.service
22
33import com.threegap.bitnagil.data.auth.model.request.LoginRequestDto
44import com.threegap.bitnagil.data.auth.model.request.TermsAgreementRequestDto
5- import com.threegap.bitnagil.data.auth.model.request.WithdrawalReasonResponse
5+ import com.threegap.bitnagil.data.auth.model.request.WithdrawalReasonRequest
66import com.threegap.bitnagil.data.auth.model.response.LoginResponseDto
77import com.threegap.bitnagil.network.model.BaseResponse
88import retrofit2.http.Body
@@ -24,7 +24,7 @@ interface AuthService {
2424 ): BaseResponse <Unit >
2525
2626 @POST(" /api/v1/auth/withdrawal" )
27- suspend fun postWithdrawal (@Body request : WithdrawalReasonResponse ): BaseResponse <Unit >
27+ suspend fun postWithdrawal (@Body request : WithdrawalReasonRequest ): BaseResponse <Unit >
2828
2929 @POST(" /api/v1/auth/logout" )
3030 suspend fun postLogout (): BaseResponse <Unit >
You can’t perform that action at this time.
0 commit comments