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