From 199e6c7547d372433d17e9c42b1c4b95aef19261 Mon Sep 17 00:00:00 2001 From: hyeumm <20221159@sungshin.ac.kr> Date: Fri, 24 May 2024 23:18:51 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore#14/:=20nicknamename=20->=20nickname?= =?UTF-8?q?=20=EB=B3=80=EC=88=98=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/now/data/remote/dto/response/ResponseUserInfoDto.kt | 4 ++-- .../sopt/now/presentation/main/mypage/UserInfoViewModel.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/sopt/now/data/remote/dto/response/ResponseUserInfoDto.kt b/app/src/main/java/com/sopt/now/data/remote/dto/response/ResponseUserInfoDto.kt index 6d46336..b3488b7 100644 --- a/app/src/main/java/com/sopt/now/data/remote/dto/response/ResponseUserInfoDto.kt +++ b/app/src/main/java/com/sopt/now/data/remote/dto/response/ResponseUserInfoDto.kt @@ -16,8 +16,8 @@ data class ResponseUserInfoDto ( data class UserInfo ( @SerialName("authenticationId") val authenticationId: String, - @SerialName("nicknamename") - val nicknamename: String, + @SerialName("nickname") + val nickname: String, @SerialName("phone") val phone: String ) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/presentation/main/mypage/UserInfoViewModel.kt b/app/src/main/java/com/sopt/now/presentation/main/mypage/UserInfoViewModel.kt index a854d49..35ca501 100644 --- a/app/src/main/java/com/sopt/now/presentation/main/mypage/UserInfoViewModel.kt +++ b/app/src/main/java/com/sopt/now/presentation/main/mypage/UserInfoViewModel.kt @@ -6,7 +6,6 @@ import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.sopt.now.ServicePool import com.sopt.now.data.remote.dto.response.ResponseUserInfoDto -import com.sopt.now.data.remote.dto.response.UserInfo import retrofit2.Call import retrofit2.Callback import retrofit2.Response @@ -33,7 +32,7 @@ class UserInfoViewModel : ViewModel() { isSuccess = true, message = "회원 정보 불러오기에 성공했습니다.", userId = data?.data?.authenticationId, - userNickname = data?.data?.nicknamename, + userNickname = data?.data?.nickname, userPhone = data?.data?.phone ) } else { @@ -50,6 +49,7 @@ class UserInfoViewModel : ViewModel() { isSuccess = false, message = "서버에러" ) + Log.d("asd",t.message.toString()) } }) } From 866d16765e68c960677e19b19c7c48705fff5013 Mon Sep 17 00:00:00 2001 From: hyeumm <20221159@sungshin.ac.kr> Date: Fri, 24 May 2024 23:54:59 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore#14/:=20=EC=A3=BC=EC=84=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/sopt/now/data/remote/service/AuthService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/sopt/now/data/remote/service/AuthService.kt b/app/src/main/java/com/sopt/now/data/remote/service/AuthService.kt index b903ba7..3b17d20 100644 --- a/app/src/main/java/com/sopt/now/data/remote/service/AuthService.kt +++ b/app/src/main/java/com/sopt/now/data/remote/service/AuthService.kt @@ -12,6 +12,7 @@ import retrofit2.http.PATCH import retrofit2.http.POST interface AuthService { + //suspend로 구현 후 다시 올리겠습니다...! @POST("member/join") //http 메소드 fun postSignUp( @Body request: RequestSignUpDto