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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import cn.iocoder.yudao.module.erp.dal.dataobject.autocode.AutocodePartDO;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 编码规则新增/修改 Request VO")
@Data
public class AutocodeRuleSaveReqVO {

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

    @Schema(description = "规则编码")
    private String ruleCode;

    @Schema(description = "规则名称", example = "张三")
    private String ruleName;

    @Schema(description = "描述")
    private String ruleDesc;

    @Schema(description = "最大长度")
    private Integer maxLength;

    @Schema(description = "是否补齐")
    private String isPadded;

    @Schema(description = "补齐字符")
    private String paddedChar;

    @Schema(description = "补齐方式")
    private String paddedMethod;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

    @Schema(description = "编码规则组成列表")
    private List<AutocodePartDO> autocodeParts;

}