Skip to content

Commit

Permalink
refactor/#9 : AuthService에서 로그인 API 호출을 suspend 함수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed Jun 6, 2024
1 parent 45e0c2e commit a0154ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/main/java/com/sopt/now/test/data/AuthService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ package com.sopt.now.test.data
import com.sopt.now.test.data.dto.request.RequestLoginDto
import com.sopt.now.test.data.dto.request.RequestSignUpDto
import com.sopt.now.test.data.dto.response.ResponseAuthDto
import retrofit2.Call
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST

interface AuthService {
// 회원가입
@POST("member/join")
suspend fun postSignUp(
@Body request: RequestSignUpDto
): ResponseAuthDto

// 로그인
@POST("member/login")
fun postLogin(
suspend fun postLogin(
@Body request: RequestLoginDto,
): Call<ResponseAuthDto>
): Response<ResponseAuthDto>
}

0 comments on commit a0154ee

Please sign in to comment.