
package com.tmerclub.cloud.api.auth.vo;

import java.io.Serial;
import java.io.Serializable;
/**
 * 用户社交登陆信息
 *
 * @author lhd
 * @date 2020/01/06
 */
public class AuthSocialVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private Long id;

    /**
     * 本系统uid
     */
    private Long uid;

    /**
     * 第三方系统类型 1小程序 2 公众号
     */
    private Integer socialType;

    /**
     * 第三方系统昵称
     */
    private String nickName;

    /**
     * 第三方系统头像
     */
    private String imageUrl;

    /**
     * 第三方系统userid
     */
    private String bizUserId;

    /**
     * 第三方系统unionid
     */
    private String bizUnionid;


    /**
     * 当账户未绑定时，临时的uid
     */
    private String tempUid;

    /**
     * 有些时候第三方系统授权之后，会有个临时的key，比如小程序的session_key
     */
    private String bizTempSession;

    /**
     * 用户id
     */
    private String userId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getSocialType() {
        return socialType;
    }

    public void setSocialType(Integer socialType) {
        this.socialType = socialType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getBizUserId() {
        return bizUserId;
    }

    public void setBizUserId(String bizUserId) {
        this.bizUserId = bizUserId;
    }

    public String getBizUnionid() {
        return bizUnionid;
    }

    public void setBizUnionid(String bizUnionid) {
        this.bizUnionid = bizUnionid;
    }

    public String getTempUid() {
        return tempUid;
    }

    public void setTempUid(String tempUid) {
        this.tempUid = tempUid;
    }

    public String getBizTempSession() {
        return bizTempSession;
    }

    public void setBizTempSession(String bizTempSession) {
        this.bizTempSession = bizTempSession;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "AuthSocialVO{" +
                "id=" + id +
                ", uid=" + uid +
                ", socialType=" + socialType +
                ", nickName='" + nickName + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", bizUserId='" + bizUserId + '\'' +
                ", bizUnionid='" + bizUnionid + '\'' +
                ", tempUid='" + tempUid + '\'' +
                ", bizTempSession='" + bizTempSession + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
