[KC-99] 추론관리 등록 leran, 5k 테이블 저장 기능 추가
This commit is contained in:
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.responses.ApiResponses;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import java.time.LocalDate;
|
||||
import java.util.UUID;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -71,19 +72,20 @@ public class InferenceResultApiController {
|
||||
content =
|
||||
@Content(
|
||||
mediaType = "application/json",
|
||||
schema = @Schema(implementation = Void.class))),
|
||||
schema = @Schema(description = "저장 uuid", implementation = UUID.class))),
|
||||
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@PostMapping("/reg")
|
||||
public ApiResponseDto<Void> saveInferenceInfo(
|
||||
public ApiResponseDto<UUID> saveInferenceInfo(
|
||||
@io.swagger.v3.oas.annotations.parameters.RequestBody(
|
||||
description = "변화탐지 실행 정보 저장 요청 정보",
|
||||
required = true)
|
||||
@RequestBody
|
||||
@Valid
|
||||
InferenceResultDto.RegReq req) {
|
||||
return ApiResponseDto.ok(null);
|
||||
UUID uuid = inferenceResultService.saveInferenceInfo(req);
|
||||
return ApiResponseDto.ok(uuid);
|
||||
}
|
||||
|
||||
// @ApiResponses(
|
||||
|
||||
Reference in New Issue
Block a user