package com.vetti.hotake.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 社交登录请求DTO
 *
 * @author vetti
 */
@Data
public class HotakeSocialLoginRequestDto {

    @NotBlank(message = "平台类型不能为空")
    @ApiModelProperty(value = "第三方平台类型：google/microsoft/linkedin", required = true)
    private String provider;

    @NotBlank(message = "授权码不能为空")
    @ApiModelProperty(value = "OAuth授权码", required = true)
    private String code;

    @NotBlank(message = "用户类型不能为空")
    @ApiModelProperty(value = "用户类型(interviewer:面试官,candidate:候选者)", required = true)
    private String sysUserType;

    @ApiModelProperty("state参数（用于防止CSRF攻击）")
    private String state;
}
