-
Notifications
You must be signed in to change notification settings - Fork 6
[Feat] #214 - 코스그리기 및 업로드 팝업 추가 #221
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
The head ref may contain hidden characters: "#214-\uCF54\uC2A4\uADF8\uB9AC\uAE30\uBC0F\uC5C5\uB85C\uB4DC"
Changes from all commits
cc9dc1a
ed34c16
c08c040
f1b5db1
4f37e5f
4dc643d
374faa7
458c500
4d6a8b3
c8e7d77
f8b7677
e79e64c
5981673
0ca4fd6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,6 @@ | |
| import Foundation | ||
|
|
||
| struct RNLocationModel: Codable { | ||
| let lat: Double | ||
| let long: Double | ||
| let latitude: Double | ||
| let longitude: Double | ||
|
Comment on lines
+11
to
+12
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. < 코스 생성 api 관련 바뀐 부분> @thingineeer
마지막 커밋 확인 부탁드립니다 !! |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ extension CourseRouter: TargetType { | |
| var path: String { | ||
| switch self { | ||
| case .uploadCourseDrawing: | ||
| return "/course" | ||
| return "/course/v2" | ||
| case .getAllPrivateCourse: | ||
| return "/course/user" | ||
| case .getPrivateCourseNotUploaded: | ||
|
|
@@ -66,20 +66,22 @@ extension CourseRouter: TargetType { | |
| var content = [String: Any]() | ||
|
|
||
| var path = [[String: Any]]() | ||
| var tempPath = String() | ||
|
|
||
| do { | ||
| for location in param.data.path { | ||
| for location in param.path { | ||
| let locationData = try location.asParameter() | ||
| path.append(locationData) | ||
| } | ||
|
|
||
| content["path"] = path | ||
| content["distance"] = param.data.distance | ||
| content["departureAddress"] = param.data.departureAddress | ||
| content["departureName"] = param.data.departureName | ||
| content["title"] = param.title | ||
| content["distance"] = param.distance | ||
| content["departureAddress"] = param.departureAddress | ||
| content["departureName"] = param.departureName | ||
|
|
||
| let jsonData = try JSONSerialization.data(withJSONObject: content) | ||
| let formData = MultipartFormData(provider: .data(jsonData), name: "data", mimeType: "application/json") | ||
| let formData = MultipartFormData(provider: .data(jsonData), name: "courseCreateRequestDto", mimeType: "application/json") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| multipartFormData.append(formData) | ||
| } catch { | ||
| print(error.localizedDescription) | ||
|
|
||

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.
OCP원칙 잘 지킨거 좋네요