-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
### 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔끔하네욥!! 고생하셨습니다 교수님🙇🏻
// return .networkFail | ||
// } | ||
// } | ||
//} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
크으 역시 교수님 이런 친절함을.... 잘 긁어서 쓰겠습니다 ^__^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석 친절행 !!!!!!!! 역시 우리 교수님 !!!!!!!!!!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
참교수상.
// return .networkFail | ||
// } | ||
// } | ||
//} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석 친절행 !!!!!!!! 역시 우리 교수님 !!!!!!!!!!!!!
🌴 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 를 작성하는 예시 코드를 주석으로 달아뒀어요!
🌱 작업한 브랜치
📮 관련 이슈