[MODIFY] 외부 Edge 패키지 등록 API 수정, EdgePkgInfoRequest 제거 및 EdgeSWVO 추가, RestTemplate 초기화 및 SSL 무시 설정 구현
parent
143f83e298
commit
ea87fef5b0
@ -1,51 +0,0 @@
|
||||
package kr.re.etri.autoflow.payload.request;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(description = "Edge 패키지 등록 요청 객체")
|
||||
public class EdgePkgInfoRequest {
|
||||
|
||||
@Schema(description = "Edge 패키지 시리얼 번호", example = "1")
|
||||
private int ed_pkg_serial;
|
||||
|
||||
@Schema(description = "설치 위치", example = "/opt/edge/package")
|
||||
private String download_location;
|
||||
|
||||
@Schema(description = "패키지 ID", example = "pkg_001")
|
||||
private String sw_id;
|
||||
|
||||
@Schema(description = "소프트웨어 버전", example = "v1.0.0")
|
||||
private String sw_version;
|
||||
|
||||
@Schema(description = "소프트웨어 이름", example = "Edge Analytics")
|
||||
private String sw_name;
|
||||
|
||||
@Schema(description = "등록 사용자 ID", example = "admin")
|
||||
private String user_id;
|
||||
|
||||
@Schema(description = "인증 ID", example = "auth_12345")
|
||||
private String auth_id;
|
||||
|
||||
@Schema(description = "설치 OS", example = "Linux")
|
||||
private String install_os;
|
||||
|
||||
@Schema(description = "등록 일시", example = "2025-10-15T14:30:00")
|
||||
private Date archive_type;
|
||||
|
||||
@Schema(description = "실행 여부 (0/1)", example = "1")
|
||||
private String exec_yn;
|
||||
|
||||
@Schema(description = "등록인만 접근 여부 (0/1)", example = "1")
|
||||
private String secret_at;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package kr.re.etri.autoflow.payload.request;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class EdgeSWVO {
|
||||
|
||||
private String sw_id;
|
||||
private String sw_name;
|
||||
private String sw_version;
|
||||
private String creation_datetime;
|
||||
private String auth_id;
|
||||
|
||||
// 파일 업로드용
|
||||
private MultipartFile file;
|
||||
}
|
||||
Loading…
Reference in new issue