-
Notifications
You must be signed in to change notification settings - Fork 6
[Refactor] #113 - CourseDiscoveryVC에 연결된 라우터들 PublicCouseRouter로 통합 #115
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
Conversation
lsj8706
left a comment
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.
수고하셨습니다~~!!!👍👍
자잘한 수정들만 해서 바로 머지 해주세요!
| case .courseUploadingData(param: let param): | ||
| do { | ||
| return .requestParameters(parameters: try param.asParameter(), encoding: JSONEncoding.default) | ||
|
|
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.
가능하면 요런 공백은 제거해주세요~!
| ) | ||
|
|
||
| private let courseDetailProvider = MoyaProvider<UploadedCourseDetailRouter>( | ||
| private let courseDetailProvider = MoyaProvider<PublicCourseRouter>( |
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.
| private let courseDetailProvider = MoyaProvider<PublicCourseRouter>( | |
| private let publicCourseProvider = MoyaProvider<PublicCourseRouter>( |
Provider 이름을 이렇게 수정해주세요~! 다른 Provider 들도 똑같이 이 이름으로 통일합시당!
| switch self { | ||
| case .getCourseData, .courseUploadingData, .getUploadedCourseInfo, .getUploadedCourseDetail, .getCourseSearchData: | ||
| return Config.headerWithDeviceId | ||
|
|
||
| } |
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.
| switch self { | |
| case .getCourseData, .courseUploadingData, .getUploadedCourseInfo, .getUploadedCourseDetail, .getCourseSearchData: | |
| return Config.headerWithDeviceId | |
| } | |
| switch self { | |
| default: | |
| return Config.headerWithDeviceId | |
| } |
switch 문에서 모든 case가 같은 결과를 필요로 한다면 이렇게 default로 한번에 처리 할 수 있습니다!
🌱 작업한 내용
🌱 PR Point
📸 스크린샷
없음
📮 관련 이슈