package com.emoon.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.emoon.common.excel.annotation.ExcelDictFormat;
import com.emoon.common.excel.convert.ExcelDictConvert;
import com.emoon.system.domain.SysRagDo;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 知识库视图对象 sys_rag
 *
 * @author wangkang
 * @date 2025-09-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysRagDo.class)
public class SysRagVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 知识库 id
     */
    @ExcelProperty(value = "知识库 id")
    private String ragId;

    /**
     * 知识库名称
     */
    @ExcelProperty(value = "知识库名称")
    private String rag;

    /**
     * 简介
     */
    @ExcelProperty(value = "简介")
    private String introduce;

    /**
     * 知识库状态（0正常 1停用）
     */
    @ExcelProperty(value = "知识库状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

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


}
