Skip to content

Commit

Permalink
hotfix:검색 api수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JjungminLee committed Oct 5, 2023
1 parent f753120 commit 7e4b3a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ResponseEntity<List<SparkListDto>> getList(
);
}

@Operation(description = "장소 키워드 검색 API")
@Operation(description = "스파크 키워드 검색 API")
@GetMapping("/search/{value}")
public ResponseEntity<List<SparkResponse>> searchSpark(@PathVariable("value")String value){
return ResponseEntity.ok().body(this.sparkUseCase.searchSpark(value));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public List<SparkResponse> 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(
Expand All @@ -252,6 +252,9 @@ public List<SparkResponse> searchSpark(String value) {
.getProfileImg())
.build()
).collect(Collectors.toList()))
.placeId(spark.getPlace().getPlaceId())
.placeName(spark.getPlace().getName())
.img(spark.getImg())
.build()
).collect(Collectors.toList());
}
Expand Down

0 comments on commit 7e4b3a1

Please sign in to comment.