-
Notifications
You must be signed in to change notification settings - Fork 2
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
Network [#67] 마이페이지 UserAPI 연결 #76
Conversation
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.
[경] ✨ 첫 API 연결 성공 축하드립니다.✨ [축]
self.userLabel.text = model.userName | ||
self.countPointLabel.text = "\(userPoint)" | ||
func getUserDataAPI() { | ||
provider.request(target: .getUserData, instance: BaseResponse<GetUserDataResponseDTO>.self, viewController: MyPageViewController() ) { data in |
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.
P4. 요기 줄 바꿈 하는 건 어떠신지! 파라미터 간격으로 하면 더 깔끔할 것 같네용 ㅎㅎ
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.
수고하셨습니다~👍
@@ -8,7 +8,7 @@ import Moya | |||
import UIKit | |||
|
|||
class NetworkProvider<Provider : TargetType> : MoyaProvider<Provider> { | |||
func request<Model : Codable>(target : Provider, instance : Model.Type , viewController: UIViewController, completion : @escaping(Model) -> ()){ | |||
func request<Model : Codable>(target : Provider, instance : BaseResponse<Model>.Type , viewController: UIViewController, completion : @escaping(BaseResponse<Model>) -> ()){ |
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.
p5. 오 이런 식으로 변경하셨군요!
👾 작업 내용
서버 통신
userLabel
과pointLabel
이 있는**UserPointHeaderView**
에서 서버 통신을 해줬습니다.🚀 PR Point
Base Provider 수정
📸 스크린샷
✅ Issue
Resolved #67