Skip to content

Commit

Permalink
[FIX] 1차 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjoo-lab committed Sep 1, 2023
1 parent 21a7972 commit e1d0d8a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class KakaoWebClientConfig {
private static final String HEADER_PREFIX = "KakaoAK ";
private final ObjectMapper objectMapper;

public KakaoWebClientConfig(@Qualifier("KakaoObjectMapper") ObjectMapper objectMapper){
public KakaoWebClientConfig(@Qualifier("kakaoObjectMapper") ObjectMapper objectMapper){
this.objectMapper = objectMapper;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class NaverWebClientConfig {
private final ObjectMapper objectMapper;

@Autowired
public NaverWebClientConfig(@Qualifier("NaverObjectMapper") ObjectMapper objectMapper){
public NaverWebClientConfig(@Qualifier("naverObjectMapper") ObjectMapper objectMapper){
this.objectMapper = objectMapper;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class KakaoObjectMapperConfig {

@Primary
@Bean
public ObjectMapper KakaoObjectMapper() {
public ObjectMapper kakaoObjectMapper() {
return new ObjectMapper()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class NaverObjectMapperConfig {

@Bean
public ObjectMapper NaverObjectMapper() {
public ObjectMapper naverObjectMapper() {
return new ObjectMapper()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.twtw.backend.domain.path.dto.client.SearchPathRequest;
import com.twtw.backend.domain.path.dto.client.SearchPathResponse;
import com.twtw.backend.domain.path.service.PathService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
Expand All @@ -16,7 +17,7 @@ public PathController(PathService pathService){

/*response 변경*/
@PostMapping("/search")
SearchPathResponse searchPath(@RequestBody SearchPathRequest request){
return pathService.searchPath(request);
public ResponseEntity<SearchPathResponse> searchPath(@RequestBody SearchPathRequest request){
return ResponseEntity.ok(pathService.searchPath(request));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
@NoArgsConstructor
@AllArgsConstructor
public class ResponsePositionFormat {
Double[][] location;
int dir;
int distance;
int duration;
int pointIndex;
private Double[][] location;
private int dir;
private int distance;
private int duration;
private int pointIndex;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@NoArgsConstructor
@AllArgsConstructor
public class RouteUnitEnt {
Summary summary;
List<Double[]> path;
private Summary summary;
private List<Double[]> path;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class PathService {
private final PathClient<SearchPathRequest, SearchPathResponse> client;

PathService(PathClient<SearchPathRequest, SearchPathResponse> client){
public PathService(PathClient<SearchPathRequest, SearchPathResponse> client){
this.client = client;
}

Expand Down

0 comments on commit e1d0d8a

Please sign in to comment.