package org.dromara.knowledge.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.knowledge.domain.KnowledgeAttach;

/**
 * 知识库附件业务对象 knowledge_attach
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KnowledgeAttach.class, reverseConvertGenerate = false)
public class KnowledgeAttachBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 知识库ID
     */
    @NotBlank(message = "知识库ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeId;

    /**
     * 文档ID
     */
    @NotBlank(message = "文档ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String docId;

    /**
     * 文档名称
     */
    @NotBlank(message = "文档名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String docName;

    /**
     * 文档类型
     */
    private String docType;

    /**
     * OSS文件ID
     */
    private Integer ossId;

    /**
     * 图片状态
     */
    private Integer picStatus;

    /**
     * 图片分析状态
     */
    private Integer picAnysStatus;

    /**
     * 向量化状态
     */
    private Integer vectorStatus;

    /**
     * 文档内容
     */
    private String content;

    /**
     * 备注
     */
    private String remark;

}