Skip to content

Commit 1edd96d

Browse files
committed
Chore: 네이밍 오타 수정
1 parent 9ef1c36 commit 1edd96d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

data/src/main/java/com/threegap/bitnagil/data/auth/datasourceimpl/AuthRemoteDataSourceImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.threegap.bitnagil.data.auth.datasourceimpl
33
import com.threegap.bitnagil.data.auth.datasource.AuthRemoteDataSource
44
import com.threegap.bitnagil.data.auth.model.request.LoginRequestDto
55
import 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
77
import com.threegap.bitnagil.data.auth.model.response.LoginResponseDto
88
import com.threegap.bitnagil.data.auth.service.AuthService
99
import 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> =

data/src/main/java/com/threegap/bitnagil/data/auth/model/request/WithdrawalReasonResponse.kt renamed to data/src/main/java/com/threegap/bitnagil/data/auth/model/request/WithdrawalReasonRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import kotlinx.serialization.SerialName
44
import kotlinx.serialization.Serializable
55

66
@Serializable
7-
data class WithdrawalReasonResponse(
7+
data class WithdrawalReasonRequest(
88
@SerialName("reasonOfWithdrawal") val reasonOfWithdrawal: String,
99
)

data/src/main/java/com/threegap/bitnagil/data/auth/service/AuthService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.threegap.bitnagil.data.auth.service
22

33
import com.threegap.bitnagil.data.auth.model.request.LoginRequestDto
44
import 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
66
import com.threegap.bitnagil.data.auth.model.response.LoginResponseDto
77
import com.threegap.bitnagil.network.model.BaseResponse
88
import 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>

0 commit comments

Comments
 (0)