Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/ImageRecognitionBo.java
2025-08-02 15:49:57 +08:00

64 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.bo;
import com.klp.common.core.validate.AddGroup;
import com.klp.common.core.validate.EditGroup;
import com.klp.common.core.validate.QueryGroup;
import com.klp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* 图片识别业务对象
*
* @author klp
* @date 2025-01-27
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class ImageRecognitionBo extends BaseEntity {
/**
* 图片URL地址
*/
@NotBlank(message = "图片URL不能为空", groups = { AddGroup.class, EditGroup.class })
private String imageUrl;
/**
* 识别类型bom-识别BOM内容text-识别文字general-通用识别
*/
private String recognitionType = "bom";
/**
* 是否启用多轮投票
*/
private Boolean enableVoting = false;
/**
* 投票轮数
*/
private Integer votingRounds = 3;
/**
* 自定义提示词
*/
private String customPrompt;
/**
* 是否保存识别结果到数据库
*/
private Boolean saveToDatabase = false;
/**
* 产品ID用于关联BOM信息
*/
private Long productId;
/**
* 识别任务描述
*/
private String taskDescription;
}