| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | @Data |
| | | @ApiModel("用户注册") |
| | | public class RegisterDTO { |
| | | @ApiModelProperty("用户名") |
| | | @NotNull(message = "用户名不能为空") |
| | | @NotEmpty(message = "用户名不能为空") |
| | | private String username; |
| | | @ApiModelProperty("小区id") |
| | | @NotNull(message = "必须绑定小区") |
| | | private Integer communityId; |
| | | @ApiModelProperty(value = "微信jscode", required = true) |
| | | @NotEmpty(message = "微信jscode不能为空") |
| | | private String jscode; |
| | | @ApiModelProperty("手机号") |
| | | @NotEmpty(message = "手机号不能为空") |
| | | private String phone; |
| | | } |