-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
146 changed files
with
6,092 additions
and
1,494 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Error.swift | ||
// Escaper | ||
// | ||
// Created by shinheeRo on 2021/11/24. | ||
// | ||
|
||
import Foundation | ||
|
||
enum UserError: Error { | ||
case networkUnconneted | ||
case notExist | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
import Foundation | ||
|
||
enum ViewType { | ||
enum TextFieldType { | ||
case email | ||
case password | ||
case passwordCheck | ||
|
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,44 @@ | ||
// | ||
// Validater.swift | ||
// Escaper | ||
// | ||
// Created by shinheeRo on 2021/11/23. | ||
// | ||
|
||
import Foundation | ||
|
||
enum Validator { | ||
enum State: String { | ||
case normal = "" | ||
case numberOfDigitsError = "8์๋ฆฌ ์ด์ ์ ๋ ฅํด์ฃผ์ธ์." | ||
case discordanceError = "๋น๋ฐ๋ฒํธ์ ์ผ์นํ์ง ์์ต๋๋ค." | ||
case alreadyExistError = "์ด๋ฏธ ๋ฑ๋ก๋ ์ด๋ฉ์ผ์ ๋๋ค." | ||
case notConfirmedError = "์์ด๋์ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ค์ ํ์ธํด์ฃผ์ธ์." | ||
|
||
var value: String { | ||
return self.rawValue | ||
} | ||
} | ||
|
||
static var notConfirmedErrorString: String { | ||
return State.notConfirmedError.value | ||
} | ||
|
||
static var alreadyExistErrorString: String { | ||
return State.alreadyExistError.value | ||
} | ||
|
||
static func checkNumberOfDigits(text: String) -> String { | ||
if text.count < 8 { | ||
return State.numberOfDigitsError.value | ||
} | ||
return State.normal.value | ||
} | ||
|
||
static func checkDiscordance(text1: String, text2: String) -> String { | ||
if text1 != text2 { | ||
return State.discordanceError.value | ||
} | ||
return State.normal.value | ||
} | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
Escaper/Escaper/Domain/Entities/Supplementary/Feedback.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 @@ | ||
// | ||
// Feedback.swift | ||
// Escaper | ||
// | ||
// Created by ์ต์์ on 2021/11/26. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Feedback { | ||
let content: String | ||
|
||
func toDTO() -> FeedbackDTO { | ||
return FeedbackDTO(content: self.content) | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
Escaper/Escaper/Domain/Interface/Repositories/FeedbackRepositoryInterface.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,12 @@ | ||
// | ||
// FeedbackRepositoryInterface.swift | ||
// Escaper | ||
// | ||
// Created by ์ต์์ on 2021/11/26. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol FeedbackRepositoryInterface { | ||
func addFeedback(feedback: Feedback) | ||
} |
12 changes: 12 additions & 0 deletions
12
Escaper/Escaper/Domain/Interface/Repositories/LeaderBoardRepositoryInterface.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,12 @@ | ||
// | ||
// LeaderBoardRepositoryInterface.swift | ||
// Escaper | ||
// | ||
// Created by ๋ฐ์๊ด on 2021/11/22. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol LeaderBoardRepositoryInterface { | ||
func fetch(completion: @escaping (Result<[User], Error>) -> Void) | ||
} |
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
12 changes: 12 additions & 0 deletions
12
Escaper/Escaper/Domain/Interface/Repositories/StoreRepositoryInterface.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,12 @@ | ||
// | ||
// StoreRepositoryInterface.swift | ||
// Escaper | ||
// | ||
// Created by TakHyun Jung on 2021/11/23. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol StoreRepositoryInterface { | ||
func query(name: String, completion: @escaping (Result<[Store], Error>) -> Void) | ||
} |
14 changes: 14 additions & 0 deletions
14
Escaper/Escaper/Domain/Interface/Repositories/UserRepositoryInterface.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,14 @@ | ||
// | ||
// UserRepositoryInterface.swift | ||
// Escaper | ||
// | ||
// Created by shinheeRo on 2021/11/22. | ||
// | ||
|
||
import Foundation | ||
|
||
protocol UserRepositoryInterface { | ||
func query(userEmail: String, completion: @escaping (Result<Bool, Error>) -> Void) | ||
func confirm(userEmail: String, userPassword: String, completion: @escaping (Result<User, UserError>) -> Void) | ||
func add(user: User) | ||
} |
Oops, something went wrong.