generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ :: [#75] AuthRepositoryImpl / public 삭제
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
46 changes: 23 additions & 23 deletions
46
Service/Sources/Data/Repository/Auth/AuthRepositoryImpl.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |