package org.dromara.knowledge.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.knowledge.domain.KnowledgeAttach;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 知识库附件视图对象 knowledge_attach
 *
 * @author pengles
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = KnowledgeAttach.class)
public class KnowledgeAttachVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 知识库ID
     */
    @ExcelProperty(value = "知识库ID")
    private String knowledgeId;

    /**
     * 文档ID
     */
    @ExcelProperty(value = "文档ID")
    private String docId;

    /**
     * 文档名称
     */
    @ExcelProperty(value = "文档名称")
    private String docName;

    /**
     * 文档类型
     */
    @ExcelProperty(value = "文档类型")
    private String docType;

    /**
     * OSS对象存储主键
     */
    @ExcelProperty(value = "OSS对象存储主键")
    private Integer ossId;

    /**
     * 图片识别状态
     */
    @ExcelProperty(value = "图片识别状态")
    private Integer picStatus;

    /**
     * 图片分析状态
     */
    @ExcelProperty(value = "图片分析状态")
    private Integer picAnysStatus;

    /**
     * 向量化状态
     */
    @ExcelProperty(value = "向量化状态")
    private Integer vectorStatus;
    /**
     * 文档内容
     */
    @ExcelProperty(value = "文档内容")
    private String content;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 获取向量化状态
     */
    public Integer getVectorStatus() {
        return vectorStatus;
    }

}