删除冗余接口

This commit is contained in:
2025-08-02 15:49:57 +08:00
parent 6ddbe069a4
commit 48fb7db385
7 changed files with 101 additions and 468 deletions

View File

@@ -34,7 +34,7 @@ public class ImageRecognitionBo extends BaseEntity {
/**
* 是否启用多轮投票
*/
private Boolean enableVoting = true;
private Boolean enableVoting = false;
/**
* 投票轮数
@@ -60,4 +60,4 @@ public class ImageRecognitionBo extends BaseEntity {
* 识别任务描述
*/
private String taskDescription;
}
}

View File

@@ -0,0 +1,19 @@
package com.klp.domain.vo;
import lombok.Data;
/**
* 属性信息
*/
@Data
public class AttributeVo {
/**
* 属性名称
*/
private String attrKey;
/**
* 属性值
*/
private String attrValue;
}

View File

@@ -0,0 +1,39 @@
package com.klp.domain.vo;
import lombok.Data;
/**
* BOM项目信息
*/
@Data
public class BomItemVo {
/**
* 原材料ID
*/
private String rawMaterialId;
/**
* 原材料名称
*/
private String rawMaterialName;
/**
* 数量
*/
private Double quantity;
/**
* 单位
*/
private String unit;
/**
* 规格
*/
private String specification;
/**
* 备注
*/
private String remark;
}

View File

@@ -1,10 +1,8 @@
package com.klp.domain.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -19,11 +17,6 @@ public class ImageRecognitionVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 识别ID
*/
private Long recognitionId;
/**
* 图片URL
*/
@@ -54,11 +47,6 @@ public class ImageRecognitionVo implements Serializable {
*/
private List<AttributeVo> attributes;
/**
* 识别置信度
*/
private Double confidence;
/**
* 识别状态success-成功failed-失败processing-处理中
*/
@@ -74,61 +62,6 @@ public class ImageRecognitionVo implements Serializable {
*/
private Long processingTime;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
* BOM项目信息
*/
@Data
public static class BomItemVo {
/**
* 原材料ID
*/
private String rawMaterialId;
/**
* 原材料名称
*/
private String rawMaterialName;
/**
* 数量
*/
private Double quantity;
/**
* 单位
*/
private String unit;
/**
* 规格
*/
private String specification;
/**
* 备注
*/
private String remark;
}
/**
* 属性信息
*/
@Data
public static class AttributeVo {
/**
* 属性名称
*/
private String attrKey;
/**
* 属性值
*/
private String attrValue;
}
}
}