Skip to content

Commit

Permalink
✨ :: [#437] FaqDomain 모듈 작업 완료 및 레거시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon committed Mar 10, 2024
1 parent ca3a81f commit c0bed42
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 57 deletions.
4 changes: 2 additions & 2 deletions Projects/App/Sources/Application/AppComponent+Faq.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

import CommonFeature
import DataModule
import DomainModule
import NetworkModule
import SignInFeature
import StorageFeature
import FaqDomain
import FaqDomainInterface

// MARK: 변수명 주의
// AppComponent 내 변수 == Dependency 내 변수 이름 같아야함
Expand Down
2 changes: 2 additions & 0 deletions Projects/App/Sources/Application/NeedleGenerated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import DataMappingModule
import DataModule
import DesignSystem
import DomainModule
import FaqDomain
import FaqDomainInterface
import Foundation
import HomeFeature
import KeychainModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import RxSwift
import ChartDomainInterface

public struct ChartRepositoryImpl: ChartRepository {
public final class ChartRepositoryImpl: ChartRepository {
private let remoteChartDataSource: any RemoteChartDataSource

public init(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import DataMappingModule
import DomainModule
import ErrorModule
import Foundation
import RxSwift

Expand Down
1 change: 0 additions & 1 deletion Projects/Domains/FaqDomain/Interface/Interface.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DataMappingModule
import ErrorModule
import Foundation
import RxSwift

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DataMappingModule
import Foundation
import RxSwift

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DataMappingModule
import Foundation
import RxSwift

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import DataMappingModule
import ErrorModule
import Foundation
import KeychainModule
import Moya
import BaseDomain

public enum FaqAPI {
case fetchFaqCategories
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import APIKit
import DataMappingModule
import DomainModule
import ErrorModule
import Foundation
import RxSwift
import BaseDomain
import FaqDomainInterface

public final class RemoteFaqDataSourceImpl: BaseRemoteDataSource<FaqAPI>, RemoteFaqDataSource {
public func fetchCategories() -> Single<FaqCategoryEntity> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DatabaseModule
import DataMappingModule
import DomainModule
import ErrorModule
import NetworkModule
import FaqDomainInterface
import RxSwift

public struct FaqRepositoryImpl: FaqRepository {
public final class FaqRepositoryImpl: FaqRepository {
private let remoteFaqDataSource: any RemoteFaqDataSource

public init(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import DataMappingModule
import DomainModule
import Utility
import Foundation
import FaqDomainInterface

public struct FaqCategoryResponseDTO: Decodable, Equatable {
public let categories: [String]
}

public extension FaqCategoryResponseDTO {
func toDomain() -> FaqCategoryEntity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import FaqDomainInterface

public struct FaqResponseDTO: Decodable {
public let question, description: String
Expand All @@ -16,3 +17,14 @@ public struct FaqResponseDTO: Decodable {
case question, description, category
}
}

public extension FaqResponseDTO {
func toDomain() -> FaqEntity {
FaqEntity(
category: category,
question: question,
description: description,
isOpen: false
)
}
}
1 change: 0 additions & 1 deletion Projects/Domains/FaqDomain/Sources/Sources.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DataMappingModule
import DomainModule
import ErrorModule
import Foundation
import FaqDomainInterface
import RxSwift

public struct FetchFaqCategoriesUseCaseImpl: FetchFaqCategoriesUseCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DataMappingModule
import DomainModule
import ErrorModule
import Foundation
import FaqDomainInterface
import RxSwift

public struct FetchFaqUseCaseImpl: FetchFaqUseCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DomainModule
import FaqDomainInterface
import Foundation
import NeedleFoundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import DomainModule
import FaqDomainInterface
import Foundation
import NeedleFoundation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import BaseFeature
import DomainModule
import FaqDomainInterface
import Foundation
import KeychainModule
import RxRelay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
//

import BaseFeature
import DomainModule
import Foundation
import KeychainModule
import RxRelay
import RxSwift
import Utility
import FaqDomainInterface

public final class QnaContentViewModel: ViewModelType {
var disposeBag = DisposeBag()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import DesignSystem
import DomainModule
import FaqDomainInterface
import UIKit

class AnswerTableViewCell: UITableViewCell {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import DesignSystem
import DomainModule
import FaqDomainInterface
import UIKit

class QuestionTableViewCell: UITableViewCell {
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit c0bed42

Please sign in to comment.