|
2 | 2 |
|
3 | 3 | import static boombimapi.global.response.ResponseMessage.*; |
4 | 4 |
|
5 | | -import boombimapi.domain.place.application.service.impl.OfficialPlaceServiceImpl; |
| 5 | +import boombimapi.domain.place.application.service.PlaceService; |
6 | 6 | import boombimapi.domain.place.presentation.dto.request.Viewport; |
7 | 7 | import boombimapi.domain.place.presentation.dto.response.MapMarker; |
8 | | -import boombimapi.global.response.ApiResponse; |
| 8 | +import boombimapi.global.response.BaseResponse; |
| 9 | +import io.swagger.v3.oas.annotations.Operation; |
| 10 | +import io.swagger.v3.oas.annotations.responses.ApiResponse; |
| 11 | +import io.swagger.v3.oas.annotations.responses.ApiResponses; |
| 12 | +import io.swagger.v3.oas.annotations.tags.Tag; |
9 | 13 | import java.util.List; |
10 | 14 | import lombok.RequiredArgsConstructor; |
11 | 15 | import org.springframework.http.HttpStatus; |
|
18 | 22 | @RestController |
19 | 23 | @RequiredArgsConstructor |
20 | 24 | @RequestMapping("/official-place") |
| 25 | +@Tag(name = "OfficialPlace", description = "공식 장소 API") |
21 | 26 | public class OfficialPlaceController { |
22 | 27 |
|
23 | | - private final OfficialPlaceServiceImpl officialPlaceService; |
| 28 | + private final PlaceService officialPlaceService; |
24 | 29 |
|
| 30 | + @Operation(summary = "뷰포트 내 공식 장소 마커 조회 API", description = "뷰포트 내에 위치한 공식 장소들의 좌표를 리스트로 반환합니다.") |
| 31 | + @ApiResponses(value = { |
| 32 | + @ApiResponse(responseCode = "200", description = "공식 장소 마커 조회 성공") |
| 33 | + }) |
25 | 34 | @PostMapping |
26 | | - public ResponseEntity<ApiResponse<List<MapMarker>>> getMarkersInViewport( |
| 35 | + public ResponseEntity<BaseResponse<List<MapMarker>>> getMarkersInViewport( |
27 | 36 | @RequestBody Viewport viewport |
28 | 37 | ) { |
29 | 38 | return ResponseEntity.ok( |
30 | | - ApiResponse.of( |
| 39 | + BaseResponse.of( |
31 | 40 | HttpStatus.OK, |
32 | 41 | GET_OFFICIAL_PLACES_WITHIN_VIEWPORT_SUCCESS, |
33 | 42 | officialPlaceService.getMarkersInViewport(viewport) |
|
0 commit comments