Skip to content

Commit d434fdd

Browse files
committed
[FEATURE]#205 : Mapper 수정 (KakaoAuthToken to SignIn)
1 parent 0152df0 commit d434fdd

File tree

1 file changed

+6
-4
lines changed
  • data/src/main/kotlin/com/bff/wespot/data/mapper/auth

1 file changed

+6
-4
lines changed

data/src/main/kotlin/com/bff/wespot/data/mapper/auth/AuthMapper.kt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package com.bff.wespot.data.mapper.auth
22

33
import com.bff.wespot.data.remote.model.auth.request.ConsentsDto
4-
import com.bff.wespot.data.remote.model.auth.request.KakaoAuthTokenDto
4+
import com.bff.wespot.data.remote.model.auth.request.SignInDto
55
import com.bff.wespot.data.remote.model.auth.request.SignUpDto
6-
import com.bff.wespot.model.auth.request.KakaoAuthToken
6+
import com.bff.wespot.model.auth.request.SignIn
77
import com.bff.wespot.model.auth.request.SignUp
88
import com.bff.wespot.model.auth.response.Consents
99

10-
internal fun KakaoAuthToken.toDto(fcmToken: String) =
11-
KakaoAuthTokenDto(
10+
internal fun SignIn.toDto(fcmToken: String) =
11+
SignInDto(
1212
socialType = socialType,
1313
identityToken = accessToken,
14+
versionName = versionName,
1415
fcmToken = fcmToken,
1516
)
1617

@@ -27,6 +28,7 @@ internal fun SignUp.toDto(token: String) =
2728
classNumber = classNumber,
2829
gender = gender,
2930
signUpToken = token,
31+
versionName = versionName,
3032
consents = consents.toDto(),
3133
profileUrl = profileUrl,
3234
introduction = introduction,

0 commit comments

Comments
 (0)