Skip to content

Commit

Permalink
#10 [FEAT] DataSourceImpl 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
yihwanggeun committed Dec 6, 2024
1 parent f208a23 commit ca58023
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.sopt.and.core.data.datasourceimpl

import org.sopt.and.core.data.datasource.HobbyDataSource
import org.sopt.and.core.data.dto.BaseResponse
import org.sopt.and.core.data.dto.response.GetHobbyResponse
import org.sopt.and.core.data.service.HobbyService

class HobbyDataSourceImpl(
private val hobbyService: HobbyService
) : HobbyDataSource {
override suspend fun getHobby(token: String): BaseResponse<GetHobbyResponse> = hobbyService.getMyHobby(token)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.sopt.and.core.data.datasourceimpl

import org.sopt.and.core.data.datasource.SignInDataSource
import org.sopt.and.core.data.dto.BaseResponse
import org.sopt.and.core.data.dto.reqeust.LoginRequest
import org.sopt.and.core.data.dto.response.LoginResponse


class SignInDataSourceImpl(
private val signInService: SignInDataSource
) : SignInDataSource {
override suspend fun postSignIn(request: LoginRequest): BaseResponse<LoginResponse> = signInService.postSignIn(request)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.sopt.and.core.data.datasourceimpl

import org.sopt.and.core.data.datasource.SignUpDataSource
import org.sopt.and.core.data.dto.BaseResponse
import org.sopt.and.core.data.dto.reqeust.CreateUserRequest
import org.sopt.and.core.data.dto.response.CreateUserResponse

class SignUpDataSourceImpl(
private val signUpService: SignUpDataSource
) : SignUpDataSource {
override suspend fun postSignUp(request: CreateUserRequest): BaseResponse<CreateUserResponse> = signUpService.postSignUp(request)
}

0 comments on commit ca58023

Please sign in to comment.