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

refactor: 피드 조회 뷰 api 수정 #213

Merged
merged 11 commits into from
Aug 27, 2024
Merged

refactor: 피드 조회 뷰 api 수정 #213

merged 11 commits into from
Aug 27, 2024

Conversation

s9hn
Copy link
Member

@s9hn s9hn commented Aug 18, 2024

📌𝘐𝘴𝘴𝘶𝘦𝘴

📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯

  • 서버 API 변경사항 반영했습니다.
  • UI 가시성 분기처리 했습니다.

📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵

123123.webm

💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴

@s9hn s9hn changed the title re refactor: 피드 조회 뷰 api 수정 Aug 18, 2024
@s9hn s9hn self-assigned this Aug 18, 2024
@s9hn s9hn added ♻️ [REFACTOR] 기존 코드를 리팩토링합니다. ⚖️ 재상 세훈 전지적 세훈 시점 labels Aug 18, 2024
Copy link
Contributor

@m6z1 m6z1 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@junseo511 junseo511 left a comment

Choose a reason for hiding this comment

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

산군이 돌아와따

Comment on lines +28 to +29
@SerialName("title")
val title: String?,
Copy link
Member

Choose a reason for hiding this comment

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

a: 타이틀은 왜 널러블하게 두신건가요?!

Copy link
Member Author

Choose a reason for hiding this comment

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

서버가 널러블하게 내려주니까요 ..?

@@ -16,6 +16,7 @@ data class FeedModel(
val categories: String = relevantCategories.joinToString(prefix = "", postfix = ""),
) {
val formattedCreatedDate: String = " · $createdDate"
val isEmptyOfRelevantCategories: Boolean = relevantCategories.isEmpty()
Copy link
Member

Choose a reason for hiding this comment

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

c: 그냥 isEmptyRelevantCategories 는 어떠신지요? 그쪽이 더 읽기 매끄러운 느낌?!

Copy link
Contributor

Choose a reason for hiding this comment

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

음... 그대로 쓰는게

val ratingCount: Int?,
) {

val isNothing: Boolean = id == null
Copy link
Member

Choose a reason for hiding this comment

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

a: isNothing 은 어떤 역할을 하나요? 변수명으로 봐서는 아무것도 아니다! 라는 느낌인데 🤔

Copy link
Member Author

@s9hn s9hn Aug 18, 2024

Choose a reason for hiding this comment

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

소설 모델 자체가 없다라는 뜻으로 만들어두었습니다.
변수 이름만 보기보단 객체 내부의 '객체 상태'값이니 객체의 이름과도 같이 유추해보면 좋을 것 같습니다.
사용부분에선 FeedModel.novel.isNothing으로 쓸 수 있긴한데 더욱 좋은 이름 있으면 추천좀용

Copy link
Contributor

Choose a reason for hiding this comment

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

존재하지 않는다라는 느낌으로 가면 어떨까요

@s9hn s9hn merged commit ef20495 into develop Aug 27, 2024
@librarywon librarywon deleted the feat/212 branch September 11, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♻️ [REFACTOR] 기존 코드를 리팩토링합니다. ⚖️ 재상 세훈 전지적 세훈 시점
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: toIntScaledByPx() 네이밍 충돌 해결 refactor: 피드 조회 뷰 api 연결 수정
4 participants