-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b6fad4
commit d8de5c4
Showing
19 changed files
with
108 additions
and
28 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
25 changes: 25 additions & 0 deletions
25
backend/src/main/java/com/twtw/backend/domain/path/client/SearchPedPathClient.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.twtw.backend.domain.path.client; | ||
|
||
import com.twtw.backend.domain.path.dto.client.ped.SearchPedPathRequest; | ||
import com.twtw.backend.domain.path.dto.client.ped.SearchPedPathResponse; | ||
import com.twtw.backend.global.client.MapClient; | ||
import com.twtw.backend.global.properties.TmapProperties; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.web.reactive.function.client.WebClient; | ||
|
||
@Component | ||
public class SearchPedPathClient implements MapClient<SearchPedPathRequest, SearchPedPathResponse> { | ||
|
||
private final WebClient webClient; | ||
private final TmapProperties tmapProperties; | ||
|
||
public SearchPedPathClient(final WebClient webClient,final TmapProperties tmapProperties){ | ||
this.webClient = webClient; | ||
this.tmapProperties = tmapProperties; | ||
} | ||
|
||
@Override | ||
public SearchPedPathResponse request(SearchPedPathRequest request) { | ||
return null; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...kend/domain/path/dto/client/Position.java → .../domain/path/dto/client/car/Position.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
2 changes: 1 addition & 1 deletion
2
...th/dto/client/ResponsePositionFormat.java → ...to/client/car/ResponsePositionFormat.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
2 changes: 1 addition & 1 deletion
2
.../domain/path/dto/client/RouteUnitEnt.java → ...ain/path/dto/client/car/RouteUnitEnt.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
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
2 changes: 1 addition & 1 deletion
2
...omain/path/dto/client/SearchPathFuel.java → ...n/path/dto/client/car/SearchPathFuel.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
2 changes: 1 addition & 1 deletion
2
...ain/path/dto/client/SearchPathOption.java → ...path/dto/client/car/SearchPathOption.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
2 changes: 1 addition & 1 deletion
2
...d/domain/path/dto/client/SectionUnit.java → ...main/path/dto/client/car/SectionUnit.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
2 changes: 1 addition & 1 deletion
2
...ckend/domain/path/dto/client/Summary.java → ...d/domain/path/dto/client/car/Summary.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
12 changes: 12 additions & 0 deletions
12
backend/src/main/java/com/twtw/backend/domain/path/dto/client/ped/Geometry.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.twtw.backend.domain.path.dto.client.ped; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Geometry { | ||
private String type; | ||
} |
17 changes: 17 additions & 0 deletions
17
backend/src/main/java/com/twtw/backend/domain/path/dto/client/ped/SearchPedPathRequest.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.twtw.backend.domain.path.dto.client.ped; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class SearchPedPathRequest { | ||
private String startX; | ||
private String startY; | ||
private String endX; | ||
private String endY; | ||
private String startName; | ||
private String endName; | ||
} |
13 changes: 13 additions & 0 deletions
13
backend/src/main/java/com/twtw/backend/domain/path/dto/client/ped/SearchPedPathResponse.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.twtw.backend.domain.path.dto.client.ped; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class SearchPedPathResponse { | ||
private String type; | ||
|
||
} |
10 changes: 5 additions & 5 deletions
10
backend/src/main/java/com/twtw/backend/domain/path/service/PathService.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,20 +1,20 @@ | ||
package com.twtw.backend.domain.path.service; | ||
|
||
import com.twtw.backend.domain.path.dto.client.SearchPathRequest; | ||
import com.twtw.backend.domain.path.dto.client.SearchPathResponse; | ||
import com.twtw.backend.domain.path.dto.client.car.SearchCarPathRequest; | ||
import com.twtw.backend.domain.path.dto.client.car.SearchCarPathResponse; | ||
import com.twtw.backend.global.client.MapClient; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class PathService { | ||
private final MapClient<SearchPathRequest, SearchPathResponse> client; | ||
private final MapClient<SearchCarPathRequest, SearchCarPathResponse> client; | ||
|
||
public PathService(MapClient<SearchPathRequest, SearchPathResponse> client) { | ||
public PathService(MapClient<SearchCarPathRequest, SearchCarPathResponse> client) { | ||
this.client = client; | ||
} | ||
|
||
public SearchPathResponse searchPath(final SearchPathRequest request) { | ||
public SearchCarPathResponse searchPath(final SearchCarPathRequest request) { | ||
return this.client.request(request); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
backend/src/main/java/com/twtw/backend/global/properties/TmapProperties.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.twtw.backend.global.properties; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
@ConfigurationProperties(prefix = "tmap") | ||
public class TmapProperties { | ||
private final String appKey; | ||
} |