Skip to content

Commit

Permalink
Feature #38: AuthRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Jun 26, 2024
1 parent 49da1b2 commit a2ea6f2
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.sopt.now.compose.domain.repository

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

interface AuthRepository {
suspend fun signup(user: RequestUserEntity): Result<Response<BaseResponseWithoutDataDto>>
suspend fun login(user: RequestSignInEntity): Result<Response<BaseResponseWithoutDataDto>>
suspend fun changePassword(user: RequestChangePasswordEntity): Result<Response<BaseResponseWithoutDataDto>>
fun getId(): String
fun getPassword(): String
fun getNickname(): String
fun getPhoneNumber(): String
fun setId(id: String)
fun setPassword(password: String)
fun setNickname(nickname: String)
fun setPhoneNumber(phoneNumber: String)
fun setUserId(userId: String)
fun setUserLoggedIn(loggedIn: Boolean)
fun clearInfo()
}

0 comments on commit a2ea6f2

Please sign in to comment.