-
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 연동 #17
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.
서버통신 야무지다 !
잘했다 ! 체고다 !
제가 더 알려드릴게 없네용 ㅎ.ㅎ
나중에 셈나 때 코루틴 배우면 그거 적용해서 서버통신 함 해보세용 !
UI 적으로 수정해야할 부분만 수정하구 머지합시당 수고하셨어용
이미지 이슈는 제가 함 해보구 알려드릴게용 >.<
민우오빠 짱
storeViewModel.popularStoreList.observe(this) { storeList -> | ||
popularStoreAdapter.setStoreList(storeList) | ||
} |
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.
셈나도 안 왔으면서 옵저버 패턴 벌써 잘 하는 거 진짜 체고야 ㅠ
response.onSuccess { data -> | ||
_popularStoreList.value = data.storeData.sortedBy { it.shopId } | ||
}.onFailure { | ||
Timber.tag("API").d("error") |
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.
Timber 누가 알려줬서 ㅠ 미쳐따
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.
ㅋㅎㅋㅎ Log 쓰니깐 친절하게 Timber 쓰라고 알려주더라구요
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.
Timber 사실 tag 없어두 되지롱 ㅋㅋ 저는 tag 없이 그냥 쓰는 편입니당
viewModelScope.launch { | ||
val response = runCatching { ServicePool.popularStoreService.getPopularStore() } | ||
response.onSuccess { data -> | ||
_popularStoreList.value = data.storeData.sortedBy { it.shopId } |
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.
60인데 6이라 되어있어용
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.
맞아요 확인하느라 그렇게 했었어요 ㅠㅠ
다시 반영했습니다!
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:layout_width="wrap_content" |
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.
엥 이거 내가 이렇게 바꾸라 했구나,,,, 졸림 이슈로 잘못 말했서요 ㅠ 얘도 0dp로 해주셍요 ㅠㅠㅠㅠㅠ 제송해오
<ImageView | ||
android:id="@+id/iv_popular_store" | ||
android:layout_width="0dp" | ||
android:layout_height="100dp" | ||
android:layout_marginStart="12dp" | ||
android:layout_marginStart="4dp" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="8dp" | ||
android:background="@drawable/shape_gray_200_6" | ||
android:scaleType="centerCrop" | ||
app:image="@{storeData.profilePhotoUrl}" | ||
app:layout_constraintBottom_toBottomOf="parent" |
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.
왜 이미지 라운드 처리 안 먹히는지 딱 알았숩니당 ㅋ
android:clipToOutline="true"
속성을 넣어보십쇼 !
요 속성을 적용해야 이미지가 백그라운드에 맞춰 잘리게 됩니당
그리구 지금 background가 이상한 게 들어가 있는 것 같아용
radius가 6인 백그라운드가 들어가야하는데 60짜리가 들어가 있서용
수정 부탁해용 ~
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.
옹 그러네요!!
5번은 어떻게 해야할지 모르겠어서 나머지만 커밋 푸시 했씁니다! |
# Conflicts: # app/src/main/AndroidManifest.xml
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.
저번 코리 내 거 하느라 바빠서 제대로 못 읽어봐서 죄삼다ㅜㅜ 오늘 건 열심히 읽어봐쏘!!! 근데 양이 적어서 코리 달 게 많이 없네요ㅜㅜ 뷰 구현한 거 나중에 꼭 다시 읽어볼게 오빤 또 얼마나 야물딱진 코드를 짰는지~~ 고생했습니다💘
@@ -27,11 +26,8 @@ class PopularStoreActivity : | |||
} | |||
|
|||
private fun setPopularStoreList() { | |||
storeViewModel.popularStoreList.observe( | |||
this, | |||
Observer { storeList -> |
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.
옵저버 패턴 이런 식으루 쓰는 거구남,, 세미나 듣고 오빠 코드로 복습하구 ~~ 좋으네요
viewModelScope.launch { | ||
val response = runCatching { ServicePool.popularStoreService.getPopularStore() } | ||
response.onSuccess { data -> | ||
_popularStoreList.value = data.storeData.sortedBy { it.shopId } |
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.
자.. 자... 자동정렬을 애용합시다!
이 정렬이 아니고 sorted였군요 ㅋㅋㅋㅋㅋㅋ
구글과 챗지피티에 검색하면 다 나옵니다!
진짜 찐막 수정사항 입니다,,,
|
|
||
interface PopularStoreService { | ||
@GET("/shops") | ||
suspend fun getPopularStore(): ResponsePopularStoreDto |
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.
요기 왜 Response 형태가 아닌가요?? 그래두 상관없는건가여,,? 세미나 때 배운 내용은 꼭 Response<> 안에 담던데ㅜ,ㅜ
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.
Call을 하기 위해서 사용하는건데 저는 enqueue를 사용하지 않고 코루틴으로 해보니깐 Call이 필요가 없더라구요!
shape 지정하는 것만 수정해줘용 ! |
Work Description ✏️
Screenshot 📸
Uncompleted Tasks 😅
To Reviewers 📢