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] #49 - Moya 서버통신 구축 #50

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

hyun99999
Copy link
Member

🌴 PR 요약

  • Models -> App Model : 프로젝트 내에서 사용할 데이터 모델.

  • NetworkModel : 서버통신 시 사용할 데이터 모델. request body 에 넣을 데이터 모델도 여기서 정의. 네이밍 -> ~~Request 라고 선언하기.

  • MoyaLoggerPlugin : log 확인할 수 있도록 인터페이스 생성해둠.

  • ~~API : 서버통신을 위해 호출하는 함수. 네이밍 -> (httpMethod)(Service 에서 선언한 열거형) ex) getCardListPatch : 카드리스트 조회

  • ~~Service : TargetType 채택해서 path, method, task, headers 설정.

  • NetworkResult : 서버통신 결과 열거형 정의.

  • GenericResponse : 제네릭을 사용한 공통적인 데이터 모델. data 역할만 NetworkModel 에서 선언해서 사용.

  • pod update 했습니당

  • Util 폴더에 Service 와 API 를 작성하는 예시 코드를 주석으로 달아뒀어요!

🌱 작업한 브랜치

📮 관련 이슈

### Descriptions
Models -> App Model : 프로젝트 내에서 사용할 데이터 모델.
NetworkModel : 서버통신 시 사용할 데이터 모델. request body 에 넣을 데이터 모델도 여기서 정의. 네이밍 -> `~~Request` 라고 선언하기.
MoyaLoggerPlugin : log 확인할 수 있도록 인터페이스 생성해둠.
`~~API` : 서버통신을 위해 호출하는 함수. 네이밍 -> (httpMethod)(Service 에서 선언한 열거형) ex) getCardListPatch : 카드리스트 조회
`~~Service` : TargetType 채택해서 path, method, task, headers 설정.
NetworkResult : 서버통신 결과 열거형 정의.
GenericResponse : 제네릭을 사용한 공통적인 데이터 모델. data 역할만 NetworkModel 에서 선언해서 사용.

- pod update 했습니당
- Util 폴더에 Service 와 API 를 작성하는 예시 코드를 주석으로 달아뒀어요!

### Related Issue
close TeamNADA#49
@hyun99999 hyun99999 added Hyungyu 🐯 현규 교수님 작업 Feat 새로운 기능 구현 labels Nov 1, 2021
@hyun99999 hyun99999 self-assigned this Nov 1, 2021
Copy link
Member

@mini-min mini-min left a comment

Choose a reason for hiding this comment

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

깔끔하네욥!! 고생하셨습니다 교수님🙇🏻

// return .networkFail
// }
// }
//}
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
Member

Choose a reason for hiding this comment

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

주석 친절행 !!!!!!!! 역시 우리 교수님 !!!!!!!!!!!!!

Copy link
Member

@dlwns33 dlwns33 left a comment

Choose a reason for hiding this comment

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

참교수상.

// return .networkFail
// }
// }
//}
Copy link
Member

Choose a reason for hiding this comment

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

주석 친절행 !!!!!!!! 역시 우리 교수님 !!!!!!!!!!!!!

@hyun99999 hyun99999 merged commit b073f7e into TeamNADA:develop Nov 1, 2021
@hyun99999 hyun99999 deleted the feature/#49 branch November 1, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Moya 서버통신 구축
3 participants