-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
스웨거 문서 작성 1차
- Loading branch information
Showing
51 changed files
with
1,687 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
public record LocationGetResponse( | ||
Long id, | ||
Point point, | ||
String address | ||
Point point | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/main/java/org/recordy/server/place/controller/dto/request/PlaceCreateRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package org.recordy.server.place.controller.dto.request; | ||
|
||
public record PlaceCreateRequest( | ||
String platformId | ||
String id, | ||
String name, | ||
double longitude, | ||
double latitude, | ||
String address | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 19 additions & 2 deletions
21
...in/java/org/recordy/server/place/controller/dto/response/PlatformPlaceSearchResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
package org.recordy.server.place.controller.dto.response; | ||
|
||
import org.recordy.server.place.service.dto.google.GooglePlaceSearch; | ||
import org.recordy.server.place.service.dto.kakao.KakaoPlaceSearch; | ||
|
||
public record PlatformPlaceSearchResponse( | ||
String platformPlaceId, | ||
String address | ||
String address, | ||
double longitude, | ||
double latitude, | ||
String name | ||
) { | ||
|
||
public static PlatformPlaceSearchResponse from(GooglePlaceSearch google) { | ||
return new PlatformPlaceSearchResponse( | ||
google.place_id(), | ||
google.formatted_address() | ||
google.formatted_address(), | ||
google.geometry().location().lng(), | ||
google.geometry().location().lat(), | ||
google.name() | ||
); | ||
} | ||
|
||
public static PlatformPlaceSearchResponse from(KakaoPlaceSearch kakao) { | ||
return new PlatformPlaceSearchResponse( | ||
kakao.id(), | ||
kakao.address_name(), | ||
Double.parseDouble(kakao.x()), | ||
Double.parseDouble(kakao.y()), | ||
kakao.place_name() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/org/recordy/server/place/domain/usecase/PlaceCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
package org.recordy.server.place.domain.usecase; | ||
|
||
import org.recordy.server.location.domain.Location; | ||
import org.recordy.server.place.controller.dto.request.PlaceCreateRequest; | ||
|
||
public record PlaceCreate( | ||
String name, | ||
String address, | ||
String platformId, | ||
Location location | ||
) { | ||
|
||
public static PlaceCreate from(PlaceCreateRequest request, Location location) { | ||
return new PlaceCreate( | ||
request.name(), | ||
request.address(), | ||
request.id(), | ||
location | ||
); | ||
} | ||
} |
26 changes: 0 additions & 26 deletions
26
src/main/java/org/recordy/server/place/domain/usecase/PlatformPlace.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.