Skip to content

Commit

Permalink
♻️ :: [#75] AuthRepositoryImpl / public 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Nov 27, 2023
1 parent 619829d commit 6673e45
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift
Original file line number Diff line number Diff line change
@@ -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)
}
}

0 comments on commit 6673e45

Please sign in to comment.