From 1566cdf5c95b8b0c46fb3ab031d09ec225ecb660 Mon Sep 17 00:00:00 2001 From: gaeun Date: Thu, 1 Jun 2023 17:20:13 +0900 Subject: [PATCH] =?UTF-8?q?[Add/#9]=20call=20->=20response=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/android/go/sopt/remote/service/LogInPageService.kt | 7 ++++--- .../org/android/go/sopt/remote/service/MainPageService.kt | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/android/go/sopt/remote/service/LogInPageService.kt b/app/src/main/java/org/android/go/sopt/remote/service/LogInPageService.kt index 77594ea..221e3dc 100644 --- a/app/src/main/java/org/android/go/sopt/remote/service/LogInPageService.kt +++ b/app/src/main/java/org/android/go/sopt/remote/service/LogInPageService.kt @@ -6,6 +6,7 @@ import org.android.go.sopt.remote.remoteData.model.MyProfileDto import org.android.go.sopt.remote.remoteData.model.RequestLogInDto import org.android.go.sopt.remote.remoteData.model.ResponseLogInDto import retrofit2.Call +import retrofit2.Response import retrofit2.http.Body import retrofit2.http.GET import retrofit2.http.POST @@ -15,15 +16,15 @@ interface LogInPageService { @POST("sign-in") fun login( @Body request: RequestLogInDto, - ): Call + ): Response @POST("sign-up") fun signUp( @Body request: RequestSignUpDto, - ): Call + ): Response @GET("info/{userId}") - fun myProfile(@Path("userId") userId: String):Call + fun myProfile(@Path("userId") userId: String):Response } \ No newline at end of file diff --git a/app/src/main/java/org/android/go/sopt/remote/service/MainPageService.kt b/app/src/main/java/org/android/go/sopt/remote/service/MainPageService.kt index def4644..8663446 100644 --- a/app/src/main/java/org/android/go/sopt/remote/service/MainPageService.kt +++ b/app/src/main/java/org/android/go/sopt/remote/service/MainPageService.kt @@ -1,14 +1,12 @@ package org.android.go.sopt.remote.service -import org.android.go.sopt.remote.remoteData.model.MyProfileDto import org.android.go.sopt.remote.remoteData.model.ResponseListUsersDto -import retrofit2.Call +import retrofit2.Response import retrofit2.http.GET -import retrofit2.http.Path interface MainPageService { @GET("users") fun getListUsers( - ): Call + ): Response } \ No newline at end of file