Skip to content

Commit

Permalink
Feature #38: AuthService
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Jun 26, 2024
1 parent 61c235a commit 235076f
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.sopt.now.compose.data.remote.service

import com.sopt.now.compose.data.remote.response.BaseResponseWithoutDataDto
import com.sopt.now.compose.domain.entity.RequestChangePasswordEntity
import com.sopt.now.compose.domain.entity.RequestSignInEntity
import com.sopt.now.compose.domain.entity.RequestUserEntity
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.PATCH
import retrofit2.http.POST

interface AuthService {
@POST("member/join")
suspend fun postSignUp(
@Body user: RequestUserEntity,
): Response<BaseResponseWithoutDataDto>

@POST("member/login")
suspend fun postSignIn(
@Body user: RequestSignInEntity,
): Response<BaseResponseWithoutDataDto>

@PATCH("member/password")
suspend fun postChangePassword(
@Body request: RequestChangePasswordEntity,
): Response<BaseResponseWithoutDataDto>
}

0 comments on commit 235076f

Please sign in to comment.