package com.vetti.hotake.domain.dto;

import com.vetti.common.core.domain.entity.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 社交登录返回结果DTO
 *
 * @author vetti
 */
@Data
public class HotakeSocialLoginResultDto {

    @ApiModelProperty("令牌")
    private String token;

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

    @ApiModelProperty("用户类型(interviewer:面试官,candidate:候选者)")
    private String sysUserType;

    @ApiModelProperty("是否新注册用户(true:新注册,false:已存在用户登录)")
    private Boolean isNewUser;

    @ApiModelProperty("第三方平台类型")
    private String provider;

    @ApiModelProperty("用户信息对象")
    private SysUser user;

    @ApiModelProperty("是否已创建简历(仅候选者有此字段)")
    private Boolean hasCv;

    @ApiModelProperty("简历数量(仅候选者有此字段)")
    private Integer cvCount;
}
