6 天以前 ffe7921a138331185186fd100846fe50dcaf841c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package cn.iocoder.yudao.module.mes.controller.admin.md.autocode.vo.rule;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
@Schema(description = "管理后台 - MES 编码规则新增/修改 Request VO")
@Data
public class MesMdAutoCodeRuleSaveReqVO {
 
    @Schema(description = "规则 ID", example = "1024")
    private Long id;
 
    @Schema(description = "规则编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ITEM_CODE")
    @NotEmpty(message = "规则编码不能为空")
    private String code;
 
    @Schema(description = "规则名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "物料编码规则")
    @NotEmpty(message = "规则名称不能为空")
    private String name;
 
    @Schema(description = "描述", example = "用于生成物料编码")
    private String description;
 
    @Schema(description = "最大长度", example = "20")
    private Integer maxLength;
 
    @Schema(description = "是否补齐", example = "true")
    private Boolean padded;
 
    @Schema(description = "补齐字符", example = "0")
    private String paddedChar;
 
    @Schema(description = "补齐方式", example = "1")
    private Integer paddedMethod;
 
    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "状态不能为空")
    private Integer status;
 
    @Schema(description = "备注", example = "备注")
    private String remark;
 
}