package cn.iocoder.yudao.module.erp.controller.admin.autocode.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 编码生成记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AutocodeRecordRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16081")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "规则ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10883")
    @ExcelProperty("规则ID")
    private Long ruleId;

    @Schema(description = "生成日期时间")
    @ExcelProperty("生成日期时间")
    private String genDate;

    @Schema(description = "最后产生的序号")
    @ExcelProperty("最后产生的序号")
    private Integer genIndex;

    @Schema(description = "最后产生的值")
    @ExcelProperty("最后产生的值")
    private String lastResult;

    @Schema(description = "最后产生的流水号")
    @ExcelProperty("最后产生的流水号")
    private Integer lastSerialNo;

    @Schema(description = "最后传入的参数")
    @ExcelProperty("最后传入的参数")
    private String lastInputChar;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "是否启用")
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isEnable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}