Skip to content

Conversation

@lee-yeonwoo
Copy link
Collaborator

@lee-yeonwoo lee-yeonwoo commented Feb 21, 2023

🌱 작업한 내용

  • CourseDiscoveryVC에 연결된 라우터들 PublicCouseRouter로 통합

🌱 PR Point

  • PR Point 1

📸 스크린샷

없음

📮 관련 이슈

@lee-yeonwoo lee-yeonwoo requested review from dlwogus0128 and lsj8706 and removed request for lsj8706 February 21, 2023 02:14
@lee-yeonwoo lee-yeonwoo self-assigned this Feb 21, 2023
@lee-yeonwoo lee-yeonwoo requested a review from lsj8706 February 21, 2023 02:15
Copy link
Collaborator

@lsj8706 lsj8706 left a 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)

Copy link
Collaborator

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>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
private let courseDetailProvider = MoyaProvider<PublicCourseRouter>(
private let publicCourseProvider = MoyaProvider<PublicCourseRouter>(

Provider 이름을 이렇게 수정해주세요~! 다른 Provider 들도 똑같이 이 이름으로 통일합시당!

Comment on lines 61 to 65
switch self {
case .getCourseData, .courseUploadingData, .getUploadedCourseInfo, .getUploadedCourseDetail, .getCourseSearchData:
return Config.headerWithDeviceId

}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
switch self {
case .getCourseData, .courseUploadingData, .getUploadedCourseInfo, .getUploadedCourseDetail, .getCourseSearchData:
return Config.headerWithDeviceId
}
switch self {
default:
return Config.headerWithDeviceId
}

switch 문에서 모든 case가 같은 결과를 필요로 한다면 이렇게 default로 한번에 처리 할 수 있습니다!

@lee-yeonwoo lee-yeonwoo merged commit 852d886 into Runnect:develop Feb 21, 2023
@lee-yeonwoo lee-yeonwoo deleted the #113 branch February 21, 2023 04:27
@lee-yeonwoo lee-yeonwoo restored the #113 branch March 17, 2023 13:20
@lee-yeonwoo lee-yeonwoo deleted the #113 branch April 8, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Refactor] #113 - publicCourse 라우터 변경

3 participants