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="AddMaterialDto对象", description="")
|
public class AddMaterialDto {
|
|
@NotNull(message = "物料类型不能为空!")
|
@ApiModelProperty(value = "0:原材料;1:成品;2:半成品", example = "1", required = true)
|
private Integer type;
|
|
@NotBlank(message = "物料名称不能为空!")
|
@ApiModelProperty(value = "物料名称", example = "石头", required = true)
|
private String materialName;
|
|
@NotBlank(message = "标准名称不能为空!")
|
@ApiModelProperty(value = "标准名称", example = "光纤", required = true)
|
private String standardName;
|
|
@NotBlank(message = "产品规格名称不能为空!")
|
@ApiModelProperty(value = "产品规格名称", example = "AB", required = true)
|
private String specificationsName;
|
}
|