Skip to content

Commit

Permalink
[Add/#9] call -> response로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gaeun5744 committed Jun 28, 2023
1 parent ef7192a commit 9863d41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,15 +16,15 @@ interface LogInPageService {
@POST("sign-in")
fun login(
@Body request: RequestLogInDto,
): Call<ResponseLogInDto>
): Response<ResponseLogInDto>

@POST("sign-up")
fun signUp(
@Body request: RequestSignUpDto,
): Call<ResponseSignUpDto>
): Response<ResponseSignUpDto>


@GET("info/{userId}")
fun myProfile(@Path("userId") userId: String):Call<MyProfileDto>
fun myProfile(@Path("userId") userId: String):Response<MyProfileDto>

}
Original file line number Diff line number Diff line change
@@ -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<ResponseListUsersDto>
): Response<ResponseListUsersDto>
}

0 comments on commit 9863d41

Please sign in to comment.