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 AutocodePartSaveReqVO {

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

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

    @Schema(description = "分段序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分段序号不能为空")
    private Integer partIndex;

    @Schema(description = "分段类型", example = "1")
    private String partType;

    @Schema(description = "分段编号")
    private String partCode;

    @Schema(description = "分段名称", example = "芋艿")
    private String partName;

    @Schema(description = "分段长度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分段长度不能为空")
    private Integer partLength;

    @Schema(description = "日期时间格式")
    private String datetimeFormat;

    @Schema(description = "输入字符")
    private String inputCharacter;

    @Schema(description = "固定字符")
    private String fixCharacter;

    @Schema(description = "流水号起始值")
    private Integer seriaStartNo;

    @Schema(description = "流水号步长")
    private Integer seriaStep;

    @Schema(description = "流水号当前值")
    private Integer seriaNowNo;

    @Schema(description = "流水号是否循环")
    private String cycleFlag;

    @Schema(description = "循环方式")
    private String cycleMethod;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean isEnable;

}