|
@@ -4,14 +4,19 @@
|
|
|
|
|
|
package com.taais.biz.domain.bo;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.taais.biz.domain.TargetDetection;
|
|
|
+import com.taais.common.orm.core.domain.BaseEntity;
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
-import jakarta.validation.constraints.*;
|
|
|
+
|
|
|
import java.util.Date;
|
|
|
-import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
-import com.taais.common.orm.core.domain.BaseEntity;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 目标检测业务对象 target_detection
|
|
@@ -22,7 +27,7 @@ import com.taais.common.orm.core.domain.BaseEntity;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@AutoMapper(target = TargetDetection.class, reverseConvertGenerate = false)
|
|
|
-public class TargetDetectionBo extends BaseEntity{
|
|
|
+public class TargetDetectionBo extends BaseEntity {
|
|
|
/**
|
|
|
* ID
|
|
|
*/
|
|
@@ -36,12 +41,12 @@ public class TargetDetectionBo extends BaseEntity{
|
|
|
|
|
|
/**
|
|
|
* 状态
|
|
|
- 0:未开始
|
|
|
- 1:进行中
|
|
|
- 2:完成
|
|
|
- 3:失败
|
|
|
- 4:中断
|
|
|
- */
|
|
|
+ * 0:未开始
|
|
|
+ * 1:进行中
|
|
|
+ * 2:完成
|
|
|
+ * 3:失败
|
|
|
+ * 4:中断
|
|
|
+ */
|
|
|
private String status;
|
|
|
|
|
|
/**
|
|
@@ -102,4 +107,17 @@ public class TargetDetectionBo extends BaseEntity{
|
|
|
*/
|
|
|
@NotNull(message = "模型的id不能为空")
|
|
|
private Long algorithmModelId;
|
|
|
+
|
|
|
+ private String algorithmParameters;
|
|
|
+ @NotNull(message = "算法不能为空")
|
|
|
+ private Long algorithmId;
|
|
|
+ private String logPath;
|
|
|
+
|
|
|
+ // 将其他参数存入Map
|
|
|
+ private Map<String, Object> otherParams = new HashMap<>();
|
|
|
+
|
|
|
+ @JsonAnySetter
|
|
|
+ public void addOtherParam(String name, Object value) {
|
|
|
+ this.otherParams.put(name, value);
|
|
|
+ }
|
|
|
}
|