| | |
| | | */ |
| | | @Schema(description = "片区名称", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotEmpty(message = "片区名称不能为空") //不能为空也不能为null |
| | | @Length(message = "片区名称小于{max}字", min = 1, max = 25) |
| | | @Length(message = "片区名称不大于{max}字符,不小于{min}字符", min = 1, max = 25) |
| | | public String name; |
| | | |
| | | /** |
| | | * 负责人 |
| | | */ |
| | | @Schema(description = "片区负责人", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Length(message = "片区负责人姓名小于{max}字", min = 1, max = 25) |
| | | @Length(message = "片区负责人姓名不大于{max}字符,不小于{min}字符", min = 1, max = 25) |
| | | public String header; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 是否删除: 0表示未删除 1表示删除. |
| | | */ |
| | | @Schema(description = "片区删除标志", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Schema(description = "片区删除标志,表单不用填写", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | public Deleted deleted; |
| | | |
| | | } |