Skip to content

Commit

Permalink
#8 [refactor] : rename dto -> response
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsuhyun committed Nov 14, 2024
1 parent 0c77d44 commit c8b5b52
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.data.model.dto
package org.sopt.and.data.model.response


import kotlinx.serialization.SerialName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.data.model.dto
package org.sopt.and.data.model.response


import kotlinx.serialization.SerialName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.data.model.dto
package org.sopt.and.data.model.response


import kotlinx.serialization.SerialName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.sopt.and.data.network.service

import org.sopt.and.data.model.dto.ResponseUserHobbyDto
import org.sopt.and.data.model.dto.ResponseUserSignUpDto
import org.sopt.and.data.model.dto.ResponseUserTokenDto
import org.sopt.and.data.model.response.ResponseUserHobbyDto
import org.sopt.and.data.model.response.ResponseUserSignUpDto
import org.sopt.and.data.model.response.ResponseUserTokenDto
import org.sopt.and.data.model.request.UserLoginRequest
import org.sopt.and.data.model.request.UserSignUpRequest
import retrofit2.Call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import org.sopt.and.R
import org.sopt.and.data.ServicePool
import org.sopt.and.data.model.dto.ResponseUserTokenDto
import org.sopt.and.data.model.response.ResponseUserTokenDto
import org.sopt.and.data.model.request.UserLoginRequest
import org.sopt.and.utils.toast
import retrofit2.Call
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/and/feature/mypage/MyScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun MyScreen(
) {
val context = LocalContext.current
val sharedPreferences = context.getSharedPreferences("token", Context.MODE_PRIVATE)
val token = sharedPreferences.getString("loginToken", "none") ?: "none"
val token = sharedPreferences.getString("loginToken", "").orEmpty()

viewModel.getUserHobby(token = token)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.sopt.and.data.ServicePool
import org.sopt.and.data.model.dto.ResponseUserHobbyDto
import org.sopt.and.data.model.response.ResponseUserHobbyDto
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import org.sopt.and.R
import org.sopt.and.data.ServicePool
import org.sopt.and.data.model.dto.ResponseUserSignUpDto
import org.sopt.and.data.model.response.ResponseUserSignUpDto
import org.sopt.and.data.model.request.UserSignUpRequest
import org.sopt.and.utils.AuthKey.PASSWORD_PATTERN
import retrofit2.Call
Expand Down

0 comments on commit c8b5b52

Please sign in to comment.