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;
|
|
}
|
|
}
|