-
Notifications
You must be signed in to change notification settings - Fork 2
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
158 changed files
with
8,398 additions
and
429 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
26 changes: 0 additions & 26 deletions
26
KkuMulKum/Network/DTO/Model/Promises/ArrivalCompletionResponseModel.swift
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
KkuMulKum/Network/DTO/Model/Promises/MeetingPromisesModel.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,21 @@ | ||
// | ||
// MeetingPromisesModel.swift | ||
// KkuMulKum | ||
// | ||
// Created by 김진웅 on 7/10/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct MeetingPromisesModel: ResponseModelType { | ||
let promises: [MeetingPromise] | ||
} | ||
|
||
struct MeetingPromise: Codable { | ||
let id: Int | ||
let name: String | ||
let dDay: Int | ||
let date: String | ||
let time: String | ||
let placeName: String | ||
} |
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
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,70 @@ | ||
// | ||
// LoginService.swift | ||
// KkuMulKum | ||
// | ||
// Created by 이지훈 on 7/15/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import Moya | ||
|
||
enum LoginTargetType { | ||
case appleLogin(identityToken: String, fcmToken: String) | ||
case kakaoLogin(accessToken: String, fcmToken: String) | ||
case refreshToken(refreshToken: String) | ||
} | ||
|
||
extension LoginTargetType: TargetType { | ||
|
||
var method: Moya.Method { | ||
.post | ||
} | ||
|
||
var baseURL: URL { | ||
guard let privacyInfo = Bundle.main.privacyInfo, | ||
let urlString = privacyInfo["BASE_URL"] as? String, | ||
let url = URL(string: urlString) else { | ||
fatalError("Invalid BASE_URL in PrivacyInfo.plist") | ||
} | ||
return url | ||
} | ||
|
||
var path: String { | ||
switch self { | ||
case .appleLogin, .kakaoLogin: | ||
return "/api/v1/auth/signin" | ||
case .refreshToken: | ||
return "/api/v1/auth/reissue" | ||
} | ||
} | ||
|
||
var task: Task { | ||
switch self { | ||
case let .appleLogin(_, fcmToken): | ||
return .requestParameters( | ||
parameters: ["provider": "APPLE", "fcmToken": fcmToken], | ||
encoding: JSONEncoding.default | ||
) | ||
case let .kakaoLogin(_, fcmToken): | ||
return .requestParameters( | ||
parameters: ["provider": "KAKAO", "fcmToken": fcmToken], | ||
encoding: JSONEncoding.default | ||
) | ||
case .refreshToken: | ||
return .requestPlain | ||
} | ||
} | ||
|
||
var headers: [String : String]? { | ||
switch self { | ||
case .appleLogin(let identityToken, _): | ||
return ["Authorization": identityToken, "Content-Type": "application/json"] | ||
case .kakaoLogin(let accessToken, _): | ||
return ["Authorization": accessToken, "Content-Type": "application/json"] | ||
case .refreshToken(let refreshToken): | ||
return ["Authorization": refreshToken, "Content-Type": "application/json"] | ||
} | ||
} | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
KkuMulKum/Resource/Assets.xcassets/AppIcon.appiconset/Contents.json
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.