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

좋아요 기능 구현, Reponse(retrofit)에서 결과를 가져오는 확장함수 구현 #65

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

soopeach
Copy link
Member

@soopeach soopeach commented Jan 4, 2024

😎 작업 내용

  • 게시글 좋아요 기능 구현

🧐 변경된 내용

  • toPost로 매핑할 때 isLiked 필드가 추가됨.
  • Response.getResult 확장함수 추가
Screenshot 2024-01-04 at 1 35 11 PM
  • map처럼 사용하면 됨

🥳 동작 화면

like

🤯 이슈 번호

  • 이슈 없음

🥲 비고

  • 비고 없음

@soopeach soopeach requested a review from yonghanJu January 4, 2024 04:36
@soopeach soopeach self-assigned this Jan 4, 2024
Comment on lines 231 to +235
single { get<Retrofit>().create(PostService::class.java) }

single { get<Retrofit>().create(RunningService::class.java) }

single { get<Retrofit>().create(CommunityService::class.java) }
Copy link
Contributor

Choose a reason for hiding this comment

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

제가 잘 몰라서 질문 드립니다!
레트로핏 객체를 응집도에 따라서 여러개 생성하나요??
baseUrl이 다른것 이외에 차이점이 없더라고 여러개 생성하나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

@yonghanJu
어... 이러면 안되지만 그렇게 되어있길래요...

Copy link
Member Author

Choose a reason for hiding this comment

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

근데 생각해보니까 서비스 객체들은 원래 여러 개 생성할 수 밖에 없지않나요

@soopeach soopeach merged commit 4b81878 into compose/develop Jan 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants