|
|
@ -4,9 +4,7 @@ import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
import javax.validation.constraints.Max; |
|
|
|
import javax.validation.constraints.Min; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
import javax.validation.constraints.*; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -19,15 +17,20 @@ public class HealthDto { |
|
|
|
public static class healthInfo{ |
|
|
|
@ApiModelProperty("token") |
|
|
|
private String token; |
|
|
|
@Size(max = 128,min = 0,message = "信息格式错误") |
|
|
|
@ApiModelProperty("当前所在地区") |
|
|
|
private String district; |
|
|
|
@Size(max = 128,min = 0,message = "信息格式错误") |
|
|
|
@ApiModelProperty("当前所在详细地址") |
|
|
|
private String address; |
|
|
|
@NotNull |
|
|
|
@ApiModelProperty("当前身体状态") |
|
|
|
private Long healthTypeId; |
|
|
|
@DecimalMax(value = "45",message = "体温输入异常") |
|
|
|
@DecimalMin(value = "30",message = "体温输入异常") |
|
|
|
@ApiModelProperty("体温") |
|
|
|
private BigDecimal animalHeat; |
|
|
|
@Size(max = 32,min = 0,message = "信息格式错误") |
|
|
|
@ApiModelProperty("就诊医院") |
|
|
|
private String hospital; |
|
|
|
@ApiModelProperty("有无湖北武汉接触史 0没有 1有") |
|
|
@ -38,10 +41,12 @@ public class HealthDto { |
|
|
|
private int touchOverseas; |
|
|
|
@ApiModelProperty("是否在学校所在地 0无 1有") |
|
|
|
private int schoolLocation; |
|
|
|
@Size(max = 6,min = 0,message = "信息格式错误") |
|
|
|
@ApiModelProperty("紧急联系人姓名") |
|
|
|
private String emergencyName; |
|
|
|
@ApiModelProperty("紧急联系人电话") |
|
|
|
private String emergencyPhone; |
|
|
|
@Size(max = 144,min = 0,message = "信息格式错误") |
|
|
|
@ApiModelProperty("备注信息") |
|
|
|
private String remark; |
|
|
|
@Min(value = 1) |
|
|
|