-
Notifications
You must be signed in to change notification settings - Fork 1
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] 홈 API 연결 #470
✨ [FEAT] 홈 API 연결 #470
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.
정빈아 TVC 업데이트 부분 bd643b0
이거 한번 참고해봐봐!
@@ -70,6 +70,7 @@ extension BaseVC { | |||
UserDefaults.standard.set(data.user.secondMajorID, forKey: UserDefaults.Keys.SecondMajorID) | |||
UserDefaults.standard.set(data.user.secondMajorName, forKey: UserDefaults.Keys.SecondMajorName) | |||
UserDefaults.standard.set(data.user.userID, forKey: UserDefaults.Keys.UserID) | |||
UserDefaults.standard.set(data.user.universityID, forKey: UserDefaults.Keys.univID) |
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.
고마와요~
@hwangJi-dev 및힌 저거 보고 수정해서 고쳤어 곰마워!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
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.
해결해서 다행이네,, 천재걸들 최고~
/// [GET] 학교 후기 전체 최신순 조회 | ||
func getAllReviewList(completion: @escaping (NetworkResult<Any>) -> (Void)) { | ||
provider.request(.getAllReviewList) { result in | ||
switch result { | ||
case .success(let response): | ||
let statusCode = response.statusCode | ||
let data = response.data | ||
|
||
let networkResult = self.judgeStatus(by: statusCode, data, HomeRecentReviewResponseData.self) | ||
completion(networkResult) | ||
|
||
case .failure(let err): | ||
print(err.localizedDescription) | ||
} | ||
} | ||
} | ||
|
||
/// [GET] 선배 랭킹 조회 | ||
func getUserRankingList(completion: @escaping (NetworkResult<Any>) -> (Void)) { | ||
provider.request(.getUserRankingList) { result in | ||
switch result { | ||
case .success(let response): | ||
let statusCode = response.statusCode | ||
let data = response.data | ||
|
||
let networkResult = self.judgeStatus(by: statusCode, data, HomeRankingResponseModel.self) | ||
completion(networkResult) | ||
|
||
case .failure(let err): | ||
print(err.localizedDescription) | ||
} |
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.
감삼당~
override func prepareForReuse() { | ||
super.prepareForReuse() | ||
updateRecentPostTVHeight() | ||
} |
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.
굳굳..셀 재사용 문제인거 같드라...
func updateRecentPostTVHeight() { | ||
self.recentPostTV.reloadData() | ||
self.recentPostTV.snp.updateConstraints { | ||
$0.height.equalTo(self.recentPostTV.contentSize.height) | ||
} | ||
self.recentPostTV.layoutIfNeeded() | ||
} |
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.
굳...
🍎 관련 이슈
closed #463
🍎 변경 사항 및 이유
🍎 PR Point
📸 ScreenShot
RPReplay_Final1664086768.mov