package com.yuanchu.limslaboratory.pojo.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @Data @EqualsAndHashCode(callSuper = false) @ApiModel(value="AddStandardDto对象", description="") public class AddStandardDto { @NotNull(message = "物料ID不能为空!") @ApiModelProperty(value = "物料id", example = "1", required = true) private Integer materialId; @NotBlank(message = "标准名称不能为空!") @ApiModelProperty(value = "标准名称", example = "光纤", required = true) private String standardName; @NotBlank(message = "产品规格名称不能为空!") @ApiModelProperty(value = "产品规格名称", example = "AB", required = true) private String specificationsName; }