Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature/#8 week04] 4차과제 #9

Merged
merged 5 commits into from
Jun 27, 2022
Merged

[Feature/#8 week04] 4차과제 #9

merged 5 commits into from
Jun 27, 2022

Conversation

hyesuuou
Copy link
Member

🌱 작업한 내용

기본과제 - 로그인, 회원가입 연결

🌱 PR Point

  • Alamofire의 URLRequestConvertible을 사용했습니다!

📸 스크린샷

구현 내용 스크린샷
로그인 Simulator Screen Recording - iPhone 13 mini - 2022-05-15 at 19 22 52
회원가입 Simulator Screen Recording - iPhone 13 mini - 2022-05-15 at 19 22 15

📮 관련 이슈

@hyesuuou hyesuuou self-assigned this May 15, 2022
Copy link
Member

@devxsby devxsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깔끔하게 딱 쓸 코드만 넣는거 멋있어요.
오늘도 많이 배워갑니다 혜수 선배 🐧

Comment on lines +16 to +22
init(from decoder: Decoder) throws {
let values = try decoder.container(keyedBy: CodingKeys.self)
message = (try? values.decode(String.self, forKey: .message)) ?? ""
success = (try? values.decode(Bool.self, forKey: .success)) ?? nil
data = (try? values.decode(T.self, forKey: .data)) ?? nil
status = (try? values.decode(Int.self, forKey: .status)) ?? 0
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와웅 대박 멋있어.


import Alamofire

enum UserRouter: URLRequestConvertible {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우왕 URLRequestConvertible 배워갑니다~~ ! 💝

@hyesuuou hyesuuou requested a review from meenyweeny June 27, 2022 14:48
@hyesuuou hyesuuou merged commit ffd6a0c into main Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] iOS 4차 과제
2 participants