forked from sopt-makers/SOPT-iOS
-
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.
[Add] sopt-makers#57 - 비밀번호 변경 기능을 위한 파일들 추가
- Loading branch information
Showing
9 changed files
with
186 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
SOPT-Stamp-iOS/Projects/Data/Sources/Transform/PasswordSettingTransform.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,19 @@ | ||
// | ||
// PasswordSettingTransform.swift | ||
// Data | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import Domain | ||
import Network | ||
|
||
extension PasswordChangeEntity { | ||
|
||
public func toDomain() -> PasswordChangeModel { | ||
return PasswordChangeModel.init() | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
SOPT-Stamp-iOS/Projects/Domain/Sources/Model/PasswordChangeModel.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,16 @@ | ||
// | ||
// PasswordChangeModel.swift | ||
// Domain | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct PasswordChangeModel { | ||
|
||
public init() { | ||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...p-iOS/Projects/Domain/Sources/RepositoryInterface/PasswordChangeRepositoryInterface.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,13 @@ | ||
// | ||
// PasswordChangeRepositoryInterface.swift | ||
// Domain | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
|
||
public protocol PasswordChangeRepositoryInterface { | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
SOPT-Stamp-iOS/Projects/Domain/Sources/UseCase/PasswordChangeUseCase.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,27 @@ | ||
// | ||
// PasswordChangeUseCase.swift | ||
// Domain | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
|
||
public protocol PasswordChangeUseCase { | ||
|
||
} | ||
|
||
public class DefaultPasswordChangeUseCase { | ||
|
||
private let repository: PasswordChangeRepositoryInterface | ||
private var cancelBag = Set<AnyCancellable>() | ||
|
||
public init(repository: PasswordChangeRepositoryInterface) { | ||
self.repository = repository | ||
} | ||
} | ||
|
||
extension DefaultPasswordChangeUseCase: PasswordChangeUseCase { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
SOPT-Stamp-iOS/Projects/Modules/Network/Sources/Entity/PasswordChangeEntity.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,13 @@ | ||
// | ||
// PasswordChangeEntity.swift | ||
// Network | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct PasswordChangeEntity { | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
...OS/Projects/Presentation/Sources/SettingScene/PasswordSettingScene/PasswordChangeVC.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,43 @@ | ||
// | ||
// PasswordChangeVC.swift | ||
// Presentation | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
import Combine | ||
|
||
import Core | ||
import SnapKit | ||
import Then | ||
|
||
public class PasswordChangeVC: UIViewController { | ||
|
||
// MARK: - Properties | ||
|
||
public var viewModel: PasswordChangeViewModel! | ||
private var cancelBag = CancelBag() | ||
|
||
// MARK: - UI Components | ||
|
||
// MARK: - View Life Cycle | ||
|
||
public override func viewDidLoad() { | ||
super.viewDidLoad() | ||
self.bindViewModels() | ||
} | ||
} | ||
|
||
// MARK: - Methods | ||
|
||
extension PasswordChangeVC { | ||
|
||
private func bindViewModels() { | ||
let input = PasswordChangeViewModel.Input() | ||
let output = self.viewModel.transform(from: input, cancelBag: self.cancelBag) | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
...ntation/Sources/SettingScene/PasswordSettingScene/ViewModel/PasswordChangeViewModel.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,52 @@ | ||
// | ||
// PasswordChangeViewModel.swift | ||
// Presentation | ||
// | ||
// Created by sejin on 2022/12/26. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import Combine | ||
|
||
import Core | ||
import Domain | ||
|
||
public class PasswordChangeViewModel: ViewModelType { | ||
|
||
private let useCase: PasswordChangeUseCase | ||
private var cancelBag = CancelBag() | ||
|
||
// MARK: - Inputs | ||
|
||
public struct Input { | ||
|
||
} | ||
|
||
// MARK: - Outputs | ||
|
||
public struct Output { | ||
|
||
} | ||
|
||
// MARK: - init | ||
|
||
public init(useCase: PasswordChangeUseCase) { | ||
self.useCase = useCase | ||
} | ||
} | ||
|
||
extension PasswordChangeViewModel { | ||
public func transform(from input: Input, cancelBag: CancelBag) -> Output { | ||
let output = Output() | ||
self.bindOutput(output: output, cancelBag: cancelBag) | ||
// input,output 상관관계 작성 | ||
|
||
return output | ||
} | ||
|
||
private func bindOutput(output: Output, cancelBag: CancelBag) { | ||
|
||
} | ||
} |
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