昨天 eccad5a129106377a275be4f7cdc58e99e9b95d4
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
46
47
48
49
50
package cn.iocoder.yudao.module.mes.controller.admin.pd.processparamtemplate.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;
 
@Schema(description = "管理后台 - MES 工艺参数模板新增/修改 Request VO")
@Data
public class MesPdProcessParamTemplateSaveReqVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "1024")
    private Long id;
 
    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "注塑工艺参数模板")
    @NotBlank(message = "模板名称不能为空")
    private String templateName;
 
    @Schema(description = "模板类型", example = "1")
    private Integer templateType;
 
    @Schema(description = "备注", example = "测试备注")
    private String remark;
 
    @Schema(description = "模板明细列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板明细不能为空")
    @Valid
    private List<Detail> details;
 
    @Schema(description = "模板明细")
    @Data
    public static class Detail {
 
        @Schema(description = "工艺参数ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
        @NotNull(message = "工艺参数ID不能为空")
        private Long processParamId;
 
        @Schema(description = "是否必填(可覆盖参数默认值)", example = "true")
        private Boolean required;
 
        @Schema(description = "备注(可覆盖参数默认值)", example = "自定义备注")
        private String remark;
 
    }
 
}