44 lines
1.8 KiB
Java
44 lines
1.8 KiB
Java
package com.kamco.cd.kamcoback.inference;
|
|
|
|
import com.kamco.cd.kamcoback.inference.dto.InferenceResultShpDto;
|
|
import com.kamco.cd.kamcoback.inference.service.InferenceManualService;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.media.Content;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
|
import io.swagger.v3.oas.annotations.responses.ApiResponses;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import java.util.List;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@Tag(name = "추론결과 데이터 생성", description = "추론결과 데이터 생성 API")
|
|
@RestController
|
|
@RequiredArgsConstructor
|
|
@RequestMapping("/api/inference/manual")
|
|
public class InferenceManualApiController {
|
|
|
|
private final InferenceManualService inferenceManualService;
|
|
|
|
@Operation(summary = "추론 결과로 추론 목록 및 shp 생성", description = "추론 결과로 추론 목록 및 shp 생성")
|
|
@ApiResponses(
|
|
value = {
|
|
@ApiResponse(
|
|
responseCode = "200",
|
|
description = "데이터 저장 성공",
|
|
content =
|
|
@Content(
|
|
mediaType = "application/json",
|
|
schema =
|
|
@Schema(implementation = InferenceResultShpDto.InferenceCntDto.class))),
|
|
@ApiResponse(responseCode = "400", description = "잘못된 검색 조건", content = @Content),
|
|
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
|
})
|
|
@PostMapping("/save")
|
|
public void saveTesting(List<Long> batchIds) {
|
|
inferenceManualService.saveResultsTesting(batchIds);
|
|
}
|
|
}
|