package com.kuyuntech.vrv.coreapi.bean.auth;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户通行证Bean
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PassportBean implements Serializable {

    //唯一标识
    private String code;

    //用户真实姓名
    private String realName;

    //用户昵称
    private String nickname;

    //用户账号
    private String account;

    //用户密码
    @JsonIgnore
    private String password;

    //验证码
    private String verifyCode;

    //用户邮箱
    private String email;

    //用户手机号码
    private String mobile;


    //上次修改密码日期
    private Date lastUpdatePwdTime;


    //出生日期
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;

    //所属应用唯一标识
    private String appCode;

    //登录类型
    private String loginType;

}
