| | |
| | | import org.hibernate.validator.constraints.URL; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import jakarta.validation.constraints.Email; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import jakarta.validation.constraints.Size; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | |
| | | @NotNull(message = "状态不能为空") |
| | | private Byte status; |
| | | |
| | | @Schema(description = "邮箱", example = "member@iocoder.cn") |
| | | @Email(message = "邮箱格式不正确") |
| | | @Size(max = 50, message = "邮箱长度不能超过 50 个字符") |
| | | private String email; |
| | | |
| | | @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四") |
| | | @NotNull(message = "用户昵称不能为空") |
| | | private String nickname; |