Skip to content

Commit

Permalink
[Chore] #212 - 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Aug 6, 2024
1 parent 7b186c7 commit b91d937
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ protocol ResignSummaryDataSendDelegate {
func sendTargetData(summaryInt: Int)
}


final class TrainingGoalsCollectionView: BaseCollectionView {

// MARK: Properties
Expand Down
2 changes: 1 addition & 1 deletion Smeem-iOS/Smeem-iOS/Network/API/Auth/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import Moya

public class AuthService: AuthServiceProtocol {
final class AuthService: AuthServiceProtocol {

static let shared = AuthService()
private let authProvider = MoyaProvider<AuthEndPoint>(plugins: [MoyaLoggingPlugin()])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,6 @@ final class AuthManagementViewController: UIViewController {

// MARK: - Custom Method

private func kakaoResignAPI() {
UserApi.shared.unlink { (error) in
if let _ = error {
self.showToast(toastType: .smeemErrorToast(message: .clientError, body: "카카오 에러입니다"))
}
else {
print("unlink() success.")
// 스밈 회원 탈퇴 API 호출
self.resignAPI()
}
}
}

private func setBackgroundColor() {
view.backgroundColor = .white
}
Expand Down Expand Up @@ -212,27 +199,6 @@ final class AuthManagementViewController: UIViewController {
}

extension AuthManagementViewController {
private func resignAPI() {
// SmeemLoadingView.showLoading()
//
// AuthService.shared.resignAPI() { result in
// switch result {
// case .success(_):
// UserDefaultsManager.accessToken = ""
// UserDefaultsManager.refreshToken = ""
// UserDefaultsManager.clientAccessToken = ""
// UserDefaultsManager.clientRefreshToken = ""
// UserDefaultsManager.hasKakaoToken = nil
//
// self.changeRootViewController(SplashViewController())
// case .failure(let error):
// self.showToast(toastType: .smeemErrorToast(message: error))
// }
//
// SmeemLoadingView.hideLoading()
// }
}

private func logoutAPI() {
SmeemLoadingView.showLoading()

Expand Down

0 comments on commit b91d937

Please sign in to comment.