package org.dromara.zhishu.domain.vo;

import org.dromara.zhishu.domain.FilterSet;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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



/**
 * 过滤设置视图对象 t_filter_set
 *
 * @author yxy
 * @date 2025-04-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FilterSet.class)
public class FilterSetVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 过滤类型
     */
    @ExcelProperty(value = "过滤类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_filter_type")
    private String filterType;

    /**
     * 限制类型
     */
    @ExcelProperty(value = "限制类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_shop_set_up")
    private String limitationType;

    /**
     * 添加方式
     */
    @ExcelProperty(value = "添加方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_add_way")
    private String addWay;

    /**
     * 内容文件
     */
    @ExcelProperty(value = "内容文件")
    private String addTxt;

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


    /**
     * 分类
     */
    private String sort;

    private Date createTime;

    /**
     * 加入原因
     */
    private String reason;

}
