-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from INFRAcp/eunjin
[feat] #117 MyInfoModify & ViewUser Api
- Loading branch information
Showing
8 changed files
with
319 additions
and
188 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/example/infraandroid/category/model/ResponseViewUserProfileData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.example.infraandroid.category.model | ||
|
||
data class ResponseViewUserProfileData( | ||
val isSuccess: Boolean, | ||
val code: Int, | ||
val message: String, | ||
val result: ArrayList<Result>?, | ||
){ | ||
data class Result( | ||
val user_id: String, | ||
val user_prPhoto: String, | ||
val user_nickname: String, | ||
val user_prAbility: ArrayList<String>, | ||
val user_grade: Int, | ||
val user_prKeyword: ArrayList<String>, | ||
) | ||
} |
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/example/infraandroid/myinfo/myinfomodify/model/MyInfoService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.example.infraandroid.myinfo.myinfomodify.model | ||
|
||
import retrofit2.Call | ||
import retrofit2.http.Header | ||
import retrofit2.http.PATCH | ||
import retrofit2.http.Path | ||
|
||
interface MyInfoService { | ||
@PATCH("/user/profile/info/{id}") | ||
fun viewMyInfo( | ||
@Header("X-ACCESS-TOKEN") jwt: String, | ||
@Path("id") userId : String | ||
): Call<ResponseViewMyInfoData> | ||
|
||
@PATCH("/user/profile/info/{id}") | ||
fun ModifyMyInfo( | ||
@Header("X-ACCESS-TOKEN") jwt: String, | ||
@Path("id") userId : String | ||
): Call<RequestModifyMyInfoData> | ||
|
||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...c/main/java/com/example/infraandroid/myinfo/myinfomodify/model/RequestModifyMyInfoData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.example.infraandroid.myinfo.myinfomodify.model | ||
|
||
data class RequestModifyMyInfoData( | ||
val isSuccess: Boolean, | ||
val code: Int, | ||
val message: String, | ||
val result: String | ||
) |
14 changes: 14 additions & 0 deletions
14
...rc/main/java/com/example/infraandroid/myinfo/myinfomodify/model/ResponseViewMyInfoData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.example.infraandroid.myinfo.myinfomodify.model | ||
|
||
data class ResponseViewMyInfoData( | ||
val isSuccess: Boolean, | ||
val code: Int, | ||
val message: String, | ||
val result: ArrayList<ResponseViewMyInfoData.Result>?, | ||
){ | ||
data class Result( | ||
val user_nickname: String, | ||
val user_prPhoto: String, | ||
) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.