diff --git a/src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/SparkController.java b/src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/SparkController.java index e55dd9d..3e74061 100644 --- a/src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/SparkController.java +++ b/src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/SparkController.java @@ -106,7 +106,7 @@ public ResponseEntity> getList( ); } - @Operation(description = "장소 키워드 검색 API") + @Operation(description = "스파크 키워드 검색 API") @GetMapping("/search/{value}") public ResponseEntity> searchSpark(@PathVariable("value")String value){ return ResponseEntity.ok().body(this.sparkUseCase.searchSpark(value)); diff --git a/src/main/java/com/onna/onnaback/domain/spark/adapter/out/persistence/SparkPersistenceAdapter.java b/src/main/java/com/onna/onnaback/domain/spark/adapter/out/persistence/SparkPersistenceAdapter.java index ce26cf3..a0301aa 100644 --- a/src/main/java/com/onna/onnaback/domain/spark/adapter/out/persistence/SparkPersistenceAdapter.java +++ b/src/main/java/com/onna/onnaback/domain/spark/adapter/out/persistence/SparkPersistenceAdapter.java @@ -239,7 +239,7 @@ public List searchSpark(String value) { .price(spark.getPrice()) .description(spark.getDescription()) .lat(spark.getPlace().getLatitude()) - .lng(spark.getPlace().getLatitude()) + .lng(spark.getPlace().getLongitude()) .participateMember( spark.getMemberSparkMappingList() .stream().map( @@ -252,6 +252,9 @@ public List searchSpark(String value) { .getProfileImg()) .build() ).collect(Collectors.toList())) + .placeId(spark.getPlace().getPlaceId()) + .placeName(spark.getPlace().getName()) + .img(spark.getImg()) .build() ).collect(Collectors.toList()); }