Skip to content

Commit

Permalink
[FEATURE] #141 : SignUpRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 27, 2024
1 parent 518d18c commit da9ec54
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import com.wap.wapp.core.data.repository.attendancestatus.AttendanceStatusReposi
import com.wap.wapp.core.data.repository.attendancestatus.AttendanceStatusRepositoryImpl
import com.wap.wapp.core.data.repository.auth.AuthRepository
import com.wap.wapp.core.data.repository.auth.AuthRepositoryImpl
import com.wap.wapp.core.data.repository.auth.SignUpRepository
import com.wap.wapp.core.data.repository.auth.SignUpRepositoryImpl
import com.wap.wapp.core.data.repository.event.EventRepository
import com.wap.wapp.core.data.repository.event.EventRepositoryImpl
import com.wap.wapp.core.data.repository.management.ManagementRepository
Expand Down Expand Up @@ -72,4 +74,10 @@ abstract class DataModule {
abstract fun bindsAttendanceStatusRepository(
attendanceStatusRepositoryImpl: AttendanceStatusRepositoryImpl,
): AttendanceStatusRepository

@Binds
@Singleton
abstract fun bindsSignUpRepository(
signUpRepositoryImpl: SignUpRepositoryImpl,
): SignUpRepository
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.wap.wapp.core.data.repository.auth

interface SignUpRepository {
suspend fun validationWapCode(code: String): Result<Boolean>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.wap.wapp.core.data.repository.auth

import com.wap.wapp.core.network.source.auth.SignUpDataSource
import javax.inject.Inject

class SignUpRepositoryImpl @Inject constructor(
private val signUpDataSource: SignUpDataSource,
) : SignUpRepository {
override suspend fun validationWapCode(code: String): Result<Boolean> =
signUpDataSource.validationWapCode(code)
}

0 comments on commit da9ec54

Please sign in to comment.