diff --git a/Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift b/Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift index 6229f6a7..e18a446d 100644 --- a/Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift +++ b/Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift @@ -1,56 +1,56 @@ import Foundation -public struct AuthRepositoryImpl: AuthRepository { +struct AuthRepositoryImpl: AuthRepository { private let remoteAuthDataSource: RemoteAuthDataSource private let localAuthDataSource: LocalAuthDataSource - - public init( + + init( remoteAuthDataSource: RemoteAuthDataSource, localAuthDataSource: LocalAuthDataSource ) { self.remoteAuthDataSource = remoteAuthDataSource self.localAuthDataSource = localAuthDataSource } - - public func login(req: LoginRequestDTO) async throws { + + func login(req: LoginRequestDTO) async throws { try await remoteAuthDataSource.login(req: req) } - - public func reissueToken() async throws { + + func reissueToken() async throws { try await remoteAuthDataSource.reissueToken() } - - public func logout() async throws { + + func logout() async throws { try await remoteAuthDataSource.logout() try await localAuthDataSource.logout() } - - public func withdraw() async throws { + + func withdraw() async throws { try await remoteAuthDataSource.withdraw() try await localAuthDataSource.withdraw() } - - public func studentSignup(req: StudentSignupRequestDTO) async throws { + + func studentSignup(req: StudentSignupRequestDTO) async throws { try await remoteAuthDataSource.studentSignup(req: req) } - - public func teacherSignup(req: TeacherSignupRequestDTO) async throws { + + func teacherSignup(req: TeacherSignupRequestDTO) async throws { try await remoteAuthDataSource.teacherSignup(req: req) } - - public func bbozzakSignup(req: BbozzakSignupRequestDTO) async throws { + + func bbozzakSignup(req: BbozzakSignupRequestDTO) async throws { try await remoteAuthDataSource.bbozzakSignup(req: req) } - - public func professorSignup(req: ProfessorSignupRequestDTO) async throws { + + func professorSignup(req: ProfessorSignupRequestDTO) async throws { try await remoteAuthDataSource.professorSignup(req: req) } - - public func governmentSignup(req: GovernmentSignupRequestDTO) async throws { + + func governmentSignup(req: GovernmentSignupRequestDTO) async throws { try await remoteAuthDataSource.governmentSignup(req: req) } - - public func companyInstructorSignup(req: CompanyInstructorSignupRequestDTO) async throws { + + func companyInstructorSignup(req: CompanyInstructorSignupRequestDTO) async throws { try await remoteAuthDataSource.companyInstructorSignup(req: req) } }