package org.dromara.zhishu.domain.vo;

import org.dromara.zhishu.domain.WhiteList;
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_white_list
 *
 * @author yxy
 * @date 2025-06-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WhiteList.class)
public class WhiteListVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * ip
     */
    @ExcelProperty(value = "ip")
    private String ip;

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


}
