Skip to content

Commit

Permalink
[add] : AuthRepository 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
chanubc committed Jan 2, 2024
1 parent 68de139 commit f11a2f1
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.sopt.dosopttemplate.data.repositoryimpl

import org.sopt.dosopttemplate.data.dto.remote.request.RequestLoginDto
import org.sopt.dosopttemplate.data.dto.remote.request.RequestSignUpDto
import org.sopt.dosopttemplate.data.service.AuthService

class AuthRepository(private val authService: AuthService) {
suspend fun postLogin(user: RequestLoginDto) =
kotlin.runCatching {
authService.postLogin(user)
}

suspend fun postSignUp(signUpInfo: RequestSignUpDto) =
kotlin.runCatching {
authService.postSignUp(signUpInfo)
}
}

0 comments on commit f11a2f1

Please sign in to comment.