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

[FEAT]139_회원가입, 소셜 로그인 구현 #162

Merged
merged 149 commits into from
Dec 26, 2021

Conversation

comeheredart
Copy link
Contributor

📌 관련 이슈

#139

📌 변경 사항 및 이유

  • 이메일 회원가입 View 구현
  • 소셜 로그인 구현

📌 PR Point

안녕하세요 오랜만입니다
아마 코드가 진짜 많고 ,,,
버그도 굉장히 많을건데 ,,, 천천히 봐주셧음 조켓다

📌 참고 사항

ㅠ ㅠ 제 무지성 코드를 용서해주세요

Comment on lines +77 to +78
case 200...299: return .success("회원가입 성공 되엇군 !!!!!!!!")
case 400...499: return .requestErr("리퀘스트에러")
Copy link
Member

Choose a reason for hiding this comment

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

킹받아요ㅋ ㅋ

Copy link
Contributor Author

Choose a reason for hiding this comment

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

킹받아요ㅋ ㅋ

자기소개하지마세요 ㅎ ㅎ


let emailVerifyInputView = JoinInputView(title: "이메일 인증번호",
subTitle: "이메일로 보내드린 인증번호를 입력해주세요.",
placeholder: "ex)울랄라")
Copy link
Member

Choose a reason for hiding this comment

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

??????????

Copy link
Contributor Author

Choose a reason for hiding this comment

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

??????????

디자인팀의 예시임니다 ㅋ ㅋ 불만있으신지?

Comment on lines +149 to +152
if textField.text == "" {
isNicknamePassed = false
self.makeButtonsGray()
nicknameView.setOrangeTFLabelColorWithText(text: "닉네임을 작성해주세요.")
Copy link
Member

Choose a reason for hiding this comment

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

요거 그 hasText라고 텍스트 있는지 없는지 필드에서 체크해주는것이.. 있다고 하더라구요,,,
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

요거 그 hasText라고 텍스트 있는지 없는지 필드에서 체크해주는것이.. 있다고 하더라구요,,, image

댑악 다음에 반영해서 올리겟슴니다! ! !

Copy link
Contributor

@inddoni inddoni left a comment

Choose a reason for hiding this comment

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

3600라인,,, 수고 많으셨어요 ㅠ 자잘한 수정들 남겼으니 나중에 수정부탁해요~~

Comment on lines +10 to +17
struct LoginJoinResponseDataModel : Codable {
let success: Bool
let msg: String
let data: UserInitialInfo
}

struct UserInitialInfo : Codable {
let email: String
Copy link
Contributor

Choose a reason for hiding this comment

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

Swift 컨벤션,, 띄어쓰기,, 초오콤 그시기 하네여,,,

Comment on lines +42 to +43
multipartFormData.append(imageData, withName: "image", fileName: "gg.jpeg", mimeType: "image/jpeg")
test.updateValue(imageData, forKey: "profileImage")
Copy link
Contributor

Choose a reason for hiding this comment

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

fileName gg.jpeg은 멀까여?

Comment on lines +66 to 68
print(decodedData.success)
print(decodedData.data)

Copy link
Contributor

Choose a reason for hiding this comment

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

므엥,, return 뒤에 print 있으면 안찍히지 않을까요?


default: return .networkFail
}
default: return .networkFail
Copy link
Contributor

Choose a reason for hiding this comment

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

나중에 개행 부탁드려요!

Suggested change
default: return .networkFail
default:
return .networkFail

Comment on lines +176 to +179
case 400: return .requestErr(decodedData.msg)
case 500: return .serverErr
default: return .networkFail
}
Copy link
Contributor

Choose a reason for hiding this comment

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

요기도 개행 plz!

Comment on lines +15 to +23
private func makeParameter(email : String) -> Parameters
{
return ["userEmail" : email]
}


func socialLogin(email : String, completion : @escaping (NetworkResult<Any>) -> Void)
{
let header : HTTPHeaders = ["Content-Type": "application/json"]
Copy link
Contributor

Choose a reason for hiding this comment

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

요기 대괄호 열리는 부분에 엔터쳐진 이유가 있나요,,? ㅠ 평소 컨벤션이랑 달라서 보기 어렵네요 ㅠㅠ

Comment on lines +26 to +31
self.isBig = isBig

if isBig {
self.setBackgroundImage(UIImage(named: "icSignupDisagreeBig"), for: .normal)
} else {
self.setBackgroundImage(UIImage(named: "icSignupDisagreeSmall"), for: .normal)
Copy link
Contributor

Choose a reason for hiding this comment

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

단순궁금증) if의 isBig의 파라미터로 들어온 isBig 맞을까요?

Comment on lines +35 to +36


Copy link
Contributor

Choose a reason for hiding this comment

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

전체적으로 함수 아랫 부분에 불필요한 개행이 많은 것 같아요 다음번에 한번에 조금 신경써주시면 좋을 것 같아요~~

Comment on lines +43 to +52
Agreed = !Agreed
if Agreed {
self.setBackgroundImage(UIImage(named: "icSignupAgreeBig"), for: .normal)
} else {
self.setBackgroundImage(UIImage(named: "icSignupDisagreeBig"), for: .normal)
}

case false:
Agreed = !Agreed
if Agreed {
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed를 true든, false든 스위치 시키는 것 같은데 이부분은 switch문 들어가기 전으로 빼도 될 것 같아요.
그리고 변수이름인데 왜 대문자로 되어있을까요? ㅠㅠ
! 말고 agreed.toggle() 이렇게 기본함수를 사용해도 좋을 것 같아요

@comeheredart
Copy link
Contributor Author

3600라인,,, 수고 많으셨어요 ㅠ 자잘한 수정들 남겼으니 나중에 수정부탁해요~~

인도니씨 갬동입니다 .. 흑흑
다 고쳐서 다음 풀리퀘에 반영하도록 하겠습니당~!~! ><

@comeheredart comeheredart merged commit e41e09b into develop Dec 26, 2021
@comeheredart comeheredart deleted the feat/139-make-Login-Join branch June 24, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants