package com.vetti.hotake.domain;

import com.vetti.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 用户社交账号绑定对象 hotake_social_user
 *
 * @author vetti
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class HotakeSocialUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("系统用户ID")
    private Long userId;

    @ApiModelProperty("第三方平台类型：google/microsoft/linkedin")
    private String provider;

    @ApiModelProperty("第三方平台用户唯一标识")
    private String providerUserId;

    @ApiModelProperty("第三方平台邮箱")
    private String email;

    @ApiModelProperty("第三方平台用户名")
    private String name;

    @ApiModelProperty("第三方平台头像URL")
    private String avatar;

    @ApiModelProperty("访问令牌")
    private String accessToken;

    @ApiModelProperty("刷新令牌")
    private String refreshToken;

    @ApiModelProperty("令牌过期时间")
    private Date tokenExpireTime;

    @ApiModelProperty("第三方平台原始用户信息JSON")
    private String rawUserInfo;
}
