Skip to content

Commit

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

import org.sopt.and.core.data.dto.BaseResponse
import org.sopt.and.core.data.dto.response.GetHobbyResponse

interface HobbyDataSource {
suspend fun getHobby(
token: String
): BaseResponse<GetHobbyResponse>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.sopt.and.core.data.datasource

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

interface SignInDataSource {
suspend fun postSignIn(
request: LoginRequest
): BaseResponse<LoginResponse>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.sopt.and.core.data.datasource

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

interface SignUpDataSource {
suspend fun postSignUp(
request: CreateUserRequest
): BaseResponse<CreateUserResponse>
}

0 comments on commit f208a23

Please sign in to comment.