PolygonData -> JsonNode 변환 예제 커밋
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
package com.kamco.cd.kamcoback.changedetection;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto;
|
||||
import com.kamco.cd.kamcoback.changedetection.service.ChangeDetectionService;
|
||||
import com.kamco.cd.kamcoback.config.api.ApiResponseDto;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.transaction.Transactional;
|
||||
import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Tag(name = "변화탐지", description = "변화탐지 API")
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@@ -20,8 +23,19 @@ public class ChangeDetectionApiController {
|
||||
|
||||
private final ChangeDetectionService changeDetectionService;
|
||||
|
||||
@Hidden
|
||||
@Deprecated
|
||||
@GetMapping
|
||||
public ApiResponseDto<List<ChangeDetectionDto>> getPolygonToPoint() {
|
||||
public ApiResponseDto<List<ChangeDetectionDto.TestDto>> getPolygonToPoint() {
|
||||
return ApiResponseDto.ok(changeDetectionService.getPolygonToPoint());
|
||||
}
|
||||
|
||||
/**
|
||||
* PolygonData -> JsonNode 변환 예제
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/json-data")
|
||||
public ApiResponseDto<List<JsonNode>> getPolygonToJson(){
|
||||
return ApiResponseDto.ok(changeDetectionService.getPolygonToJson());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user