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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 编码生成记录新增/修改 Request VO")
@Data
public class AutocodeRecordSaveReqVO {

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

    @Schema(description = "规则ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10883")
    @NotNull(message = "规则ID不能为空")
    private Long ruleId;

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

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

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

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

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

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

    @Schema(description = "是否启用")
    private Boolean isEnable;

}