Skip to content

Commit

Permalink
[#71] AuthService 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youngseo3 committed May 4, 2024
1 parent c3baf52 commit b9c656a
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.snowball.memetory.data.api

import com.snowball.memetory.data.dto.auth.request.GoogleTokenRequestDto
import com.snowball.memetory.data.dto.auth.request.SignInRequestDto
import com.snowball.memetory.data.dto.auth.response.GoogleTokenResponseDto
import com.snowball.memetory.data.dto.auth.response.TokenResponseDto
import retrofit2.Call
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST

interface AuthService {
@POST("/login")
fun loginUser(@Body request: SignInRequestDto): Call<TokenResponseDto> // 서버의 응답에 따라 반환 타입 수정 필요
// fun loginUser(@Body request: SignInRequestDto): Call<Response<TokenResponseDto>> // 서버의 응답에 따라 반환 타입 수정 필요

@POST("/oauth2/v4/token")
fun requestAccessToken(@Body request: GoogleTokenRequestDto): Call<GoogleTokenResponseDto>
// fun requestAccessToken(@Body request: GoogleTokenRequestDto): Call<Response<GoogleTokenResponseDto>>
}

0 comments on commit b9c656a

Please sign in to comment.