From a0154ee9dfe0ca8b8b6080229a2a729483d15b61 Mon Sep 17 00:00:00 2001 From: youjin09222 Date: Fri, 7 Jun 2024 07:52:19 +0900 Subject: [PATCH] =?UTF-8?q?refactor/#9=20:=20AuthService=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20API=20=ED=98=B8=EC=B6=9C?= =?UTF-8?q?=EC=9D=84=20suspend=20=ED=95=A8=EC=88=98=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/sopt/now/test/data/AuthService.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/sopt/now/test/data/AuthService.kt b/app/src/main/java/com/sopt/now/test/data/AuthService.kt index 6137e3f..fb38e1a 100644 --- a/app/src/main/java/com/sopt/now/test/data/AuthService.kt +++ b/app/src/main/java/com/sopt/now/test/data/AuthService.kt @@ -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 + ): Response } \ No newline at end of file