forked from RunningCrew-Project/RunningCrew-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.
- Loading branch information
Showing
88 changed files
with
1,704 additions
and
921 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
// | ||
// TokenError.swift | ||
// RunningCrew | ||
// | ||
// Created by 김기훈 on 2023/07/26. | ||
// | ||
|
||
import Foundation | ||
|
||
enum TokenError: Error { | ||
case getToken | ||
} | ||
|
||
extension TokenError: LocalizedError { | ||
public var errorDescription: String? { | ||
switch self { | ||
case .getToken: return "토큰을 받지 못했습니다." | ||
} | ||
} | ||
} |
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,8 @@ | ||
// | ||
// UserDefaultRepository.swift | ||
// RunningCrew | ||
// | ||
// Created by 김기훈 on 2023/08/07. | ||
// | ||
|
||
import Foundation |
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,22 @@ | ||
// | ||
// CrewModel.swift | ||
// RunningCrew | ||
// | ||
// Created by 김기훈 on 2023/08/07. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Crew: Codable, Hashable { | ||
let id: Int | ||
let createdDate, name, introduction, crewImgURL: String | ||
let dong: String | ||
let memberCount: Int | ||
let joinApply, joinQuestion: Bool | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case id, createdDate, name, introduction | ||
case crewImgURL = "crewImgUrl" | ||
case dong, memberCount, joinApply, joinQuestion | ||
} | ||
} |
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,18 @@ | ||
// | ||
// Me.swift | ||
// RunningCrew | ||
// | ||
// Created by 김기훈 on 2023/08/07. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Me: Codable { | ||
let id: Int | ||
let email, name, nickname, imgURL: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case id, email, name, nickname | ||
case imgURL = "imgUrl" | ||
} | ||
} |
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,22 @@ | ||
// | ||
// User.swift | ||
// RunningCrew | ||
// | ||
// Created by 김기훈 on 2023/08/07. | ||
// | ||
|
||
import Foundation | ||
|
||
struct User: Codable { | ||
let id: Int | ||
let email, name, nickname, imgURL: String | ||
let loginType, phoneNumber, dongArea, sex: String | ||
let birthday: String | ||
let height, weight: Int | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case id, email, name, nickname | ||
case imgURL = "imgUrl" | ||
case loginType, phoneNumber, dongArea, sex, birthday, height, weight | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.