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.common.excel.annotation.ExcelDictFormat;
import org.dromara.knowledge.domain.KnowledgeVector;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 知识片段向量视图对象 knowledge_vector
 *
 * @author pengles
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = KnowledgeVector.class)
public class KnowledgeVectorVo 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;

    /**
     * 知识片段ID
     */
    @ExcelProperty(value = "知识片段ID")
    private String fragmentId;

    /**
     * 向量ID
     */
    @ExcelProperty(value = "向量ID")
    private String vectorId;

    /**
     * 向量数据
     */
    @ExcelProperty(value = "向量数据")
    private String vectorData;

    /**
     * 向量维度
     */
    @ExcelProperty(value = "向量维度")
    private Integer dimension;

    /**
     * 模型名称
     */
    @ExcelProperty(value = "模型名称")
    private String modelName;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = org.dromara.common.excel.convert.ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private Integer status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

}