XiaoRuby
2023-07-27 ad7151b14f2721b0fa40a903c6e65a2c511dd4c5
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
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;
}