New file |
| | |
| | | package com.cl.pojo.dto; |
| | | |
| | | 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.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | @Data |
| | | @ApiModel("添加机构") |
| | | public class AddInstitutionDTO { |
| | | @Min(value = 1,message = "区县选择范围为1-5") |
| | | @Max(value = 5,message = "区县选择范围为1-5") |
| | | @NotNull(message = "区县选择不能为空") |
| | | @ApiModelProperty(value = "区县,1-东区,2-西区,3-仁和区,4-米易县,5-盐边县") |
| | | private Integer county; |
| | | |
| | | @Min(value = 1,message = "机构类型选择范围为1-2") |
| | | @Max(value = 2,message = "机构类型选择范围为1-2") |
| | | @NotNull(message = "机构类型选择不能为空") |
| | | @ApiModelProperty(value = "机构类型,1-残疾人定点康复机构,2-残疾人友好医疗机构") |
| | | private Integer type; |
| | | |
| | | @NotEmpty(message = "机构名称不能为空") |
| | | @ApiModelProperty(value = "机构名称") |
| | | private String name; |
| | | |
| | | @NotEmpty(message = "详细地址不能为空") |
| | | @ApiModelProperty(value = "详细地址") |
| | | private String address; |
| | | |
| | | @NotEmpty(message = "联系电话不能为空") |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String phone; |
| | | } |