-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 603-connect-search-feature-and-domain
- Loading branch information
Showing
55 changed files
with
519 additions
and
497 deletions.
There are no files selected for viewing
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
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
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
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
8 changes: 0 additions & 8 deletions
8
Projects/Domains/AuthDomain/Interface/Entity/AuthLoginEntity.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
32 changes: 0 additions & 32 deletions
32
Projects/Domains/AuthDomain/Interface/Entity/NaverUserInfoEntity.swift
This file was deleted.
Oops, something went wrong.
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
6 changes: 0 additions & 6 deletions
6
Projects/Domains/AuthDomain/Interface/UseCase/FetchNaverUserInfoUseCase.swift
This file was deleted.
Oops, something went wrong.
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
6 changes: 6 additions & 0 deletions
6
Projects/Domains/AuthDomain/Interface/UseCase/ReGenerateAccessTokenUseCase.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Foundation | ||
import RxSwift | ||
|
||
public protocol ReGenerateAccessTokenUseCase { | ||
func execute() -> Single<AuthLoginEntity> | ||
} |
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
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
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
18 changes: 7 additions & 11 deletions
18
Projects/Domains/AuthDomain/Sources/ResponseDTO/AuthLoginResponseDTO.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,26 +1,22 @@ | ||
// | ||
// ArtistListResponseDTO.swift | ||
// DataMappingModule | ||
// | ||
// Created by KTH on 2023/02/01. | ||
// Copyright © 2023 yongbeomkwak. All rights reserved. | ||
// | ||
|
||
import AuthDomainInterface | ||
import Foundation | ||
|
||
public struct AuthLoginResponseDTO: Decodable, Equatable { | ||
public let token: String | ||
public let accessToken: String | ||
public let expiresIn: TimeInterval | ||
public let refreshToken: String? | ||
|
||
public static func == (lhs: Self, rhs: Self) -> Bool { | ||
return lhs.token == rhs.token | ||
lhs.accessToken == rhs.accessToken | ||
&& lhs.expiresIn == rhs.expiresIn | ||
&& lhs.refreshToken == rhs.refreshToken | ||
} | ||
} | ||
|
||
public extension AuthLoginResponseDTO { | ||
func toDomain() -> AuthLoginEntity { | ||
AuthLoginEntity( | ||
token: token | ||
token: accessToken | ||
) | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
Projects/Domains/AuthDomain/Sources/ResponseDTO/NaverUserInfoResponseDTO.swift
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
Projects/Domains/AuthDomain/Sources/UseCase/FetchNaverUserInfoUseCaseImpl.swift
This file was deleted.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
Projects/Domains/AuthDomain/Sources/UseCase/ReGenerateAccessTokenUseCaseImpl.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import AuthDomainInterface | ||
import Foundation | ||
import RxSwift | ||
|
||
public struct ReGenerateAccessTokenUseCaseImpl: ReGenerateAccessTokenUseCase { | ||
private let authRepository: any AuthRepository | ||
|
||
public init(authRepository: any AuthRepository) { | ||
self.authRepository = authRepository | ||
} | ||
|
||
public func execute() -> Single<AuthLoginEntity> { | ||
authRepository.reGenerateAccessToken() | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
Projects/Domains/AuthDomain/Testing/FetchNaverUserInfoUseCaseSpy.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.