From 16dc4b3744f4ec3f27c78cef8a388e289afe0440 Mon Sep 17 00:00:00 2001 From: jung eunjung Date: Sun, 22 Jan 2023 05:53:49 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feature=20:=20Setting=20User=20Info?= =?UTF-8?q?=20module=20=EC=B6=94=EA=B0=80=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Related to : #26 --- .../com/shootit/greme/network/SettingInterface.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/shootit/greme/network/SettingInterface.kt b/app/src/main/java/com/shootit/greme/network/SettingInterface.kt index 1a5a4b3..4ea0dab 100644 --- a/app/src/main/java/com/shootit/greme/network/SettingInterface.kt +++ b/app/src/main/java/com/shootit/greme/network/SettingInterface.kt @@ -6,18 +6,19 @@ import com.shootit.greme.model.UserInterestAndGenderInfo import retrofit2.Response import retrofit2.http.Body import retrofit2.http.GET +import retrofit2.http.PATCH interface SettingInterface { // get current profile @GET("/user/profile") - fun getCurrentProfile() : Response + suspend fun getCurrentProfile() : Response // set interest, gender - @GET("/user/profile1") - fun setUserInterestAndGender(@Body data: UserInterestAndGenderInfo) : Response + @PATCH("/user/profile1") + suspend fun setUserInterestAndGender(@Body data: UserInterestAndGenderInfo) : Response // set area, purpose - @GET("/user/profile2") - fun setUserAreaAndPurpose(@Body data: UserAreaAndPurposeInfo) : Response + @PATCH("/user/profile2") + suspend fun setUserAreaAndPurpose(@Body data: UserAreaAndPurposeInfo) : Response } \ No newline at end of file