Skip to content

Commit

Permalink
✨ feature : Setting User Info module 추가 구현
Browse files Browse the repository at this point in the history
> Related to : #26
  • Loading branch information
eunjjungg committed Jan 21, 2023
1 parent f5f0b25 commit 16dc4b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/main/java/com/shootit/greme/network/SettingInterface.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserCurrentInfo>
suspend fun getCurrentProfile() : Response<UserCurrentInfo>

// set interest, gender
@GET("/user/profile1")
fun setUserInterestAndGender(@Body data: UserInterestAndGenderInfo) : Response<Void>
@PATCH("/user/profile1")
suspend fun setUserInterestAndGender(@Body data: UserInterestAndGenderInfo) : Response<Void>

// set area, purpose
@GET("/user/profile2")
fun setUserAreaAndPurpose(@Body data: UserAreaAndPurposeInfo) : Response<Void>
@PATCH("/user/profile2")
suspend fun setUserAreaAndPurpose(@Body data: UserAreaAndPurposeInfo) : Response<Void>
}

0 comments on commit 16dc4b3

Please sign in to comment.