SYYTe/maku-boot-system/src/main/java/net/maku/system/vo/SysUserBaseVO.java
2024-02-24 12:33:16 +08:00

42 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}