-
Notifications
You must be signed in to change notification settings - Fork 0
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/#64] 퀴즈 풀기 화면 디테일 수정 #66
Conversation
@@ -12,19 +12,19 @@ import ComposableArchitecture | |||
import Moya | |||
|
|||
struct NewsClient { | |||
var fetchNewsList: (Int, Int) async -> Result<[NewsEntity], D3NAPIError> | |||
var fetchQuizList: (Int) async -> Result<[QuizEntity], D3NAPIError> | |||
var fetch: (Int, Int) async -> Result<[NewsEntity], D3NAPIError> |
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.
fetch가 하나로 합쳐전 건 이제 한 번에 뉴스와 퀴즈를 동시에 보내주도록 백엔드에서 수정되어서인지 궁금합니다!
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 명세는 그대로이고, 기존에 NewsClient가 모두를 fetch 하였는데 NewsClient와 QuizClient로 분리하였습니다. 이름은 이제 NewsClient가 fetch 하는 것은 News 라는 것이 암묵적이라고 생각하여 네이밍에서 키워드를 생략하였습니다.
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.
정말 수고하셨습니다!
PR 요약
📌 변경 사항
✅ PR check list
Linked Issue
close #64