用户基本信息VO
This commit is contained in:
parent
bcf2d18b3d
commit
c8d964d6b8
|
@ -0,0 +1,41 @@
|
||||||
|
package net.maku.system.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.Email;
|
||||||
|
import jakarta.validation.constraints.NotBlank;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.hibernate.validator.constraints.Range;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户基本信息
|
||||||
|
*
|
||||||
|
* @author 阿沐 babamu@126.com
|
||||||
|
* <a href="https://maku.net">MAKU</a>
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "用户基本信息")
|
||||||
|
public class SysUserBaseVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(description = "姓名", required = true)
|
||||||
|
@NotBlank(message = "姓名不能为空")
|
||||||
|
private String realName;
|
||||||
|
|
||||||
|
@Schema(description = "头像")
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
|
@Schema(description = "性别 0:男 1:女 2:未知", required = true)
|
||||||
|
@Range(min = 0, max = 2, message = "性别不正确")
|
||||||
|
private Integer gender;
|
||||||
|
|
||||||
|
@Schema(description = "邮箱")
|
||||||
|
@Email(message = "邮箱格式不正确")
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
@Schema(description = "手机号", required = true)
|
||||||
|
@NotBlank(message = "手机号不能为空")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user