package cn.qinys.platform.upms.api.req;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 后台登录
 *
 * @author tanlie
 * Date: 2024/2/5 9:25
 */
@Data
public class CurrentUserUpdateSelfReq implements Serializable {


    /**
     * 电子邮箱
     */
    private String email;


    @Pattern(regexp = "^1([3456789])\\d{9}$", message = "手机号格式不正确")
    @NotNull(message = "手机号不能为空")
    private String mobile;
    /**
     * 性别
     */
    private String sex;

    /**
     * 姓名
     */
    private String fullName;

    /**
     * 头像
     */
    private String avatar;

}
