Skip to content

Commit

Permalink
feature #13: AuthDataSourceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 0b0d469 commit bcba10b
Showing 1 changed file with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
package org.sopt.and.data.datasourceimpl

import org.sopt.and.data.datasource.WavveDataSource
import org.sopt.and.data.datasource.AuthDataSource
import org.sopt.and.data.dto.request.RequestSignInDto
import org.sopt.and.data.dto.request.RequestSignUpDto
import org.sopt.and.data.dto.response.BaseResponse
import org.sopt.and.data.dto.response.ResponseUserHobbyDto
import org.sopt.and.data.dto.response.ResponseSignInDto
import org.sopt.and.data.dto.response.ResponseSignUpDto
import org.sopt.and.data.service.WavveService
import org.sopt.and.data.service.AuthService
import javax.inject.Inject

class WavveDataSourceImpl @Inject constructor(
private val wavveService: WavveService
) : WavveDataSource {
class AuthDataSourceImpl @Inject constructor(
private val authService: AuthService
) : AuthDataSource {
override suspend fun postSignUp(requestSignUpDto: RequestSignUpDto): BaseResponse<ResponseSignUpDto> =
wavveService.postSignUp(requestSignUpDto)
authService.postSignUp(requestSignUpDto)

override suspend fun postSignIn(requestSignInDto: RequestSignInDto): BaseResponse<ResponseSignInDto> =
wavveService.postSignIn(requestSignInDto)

override suspend fun getUserHobby(): BaseResponse<ResponseUserHobbyDto> =
wavveService.getUserHobby()

authService.postSignIn(requestSignInDto)
}

0 comments on commit bcba10b

Please sign in to comment.