package com.jeesharp.business.modules.member.vo;

import com.jeesharp.business.modules.member.entity.LoginResultVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 二维码登录状态
 *
 * @author jeesharp
 */
@Data
@Schema(description = "二维码登录状态")
public class QrLoginStatusVO {

    /**
     * 二维码登录状态
     */
    @Schema(description = "状态：pending-等待扫码 scanned-已扫码 confirmed-已确认 expired-已过期",
            example = "pending", allowableValues = {"pending", "scanned", "confirmed", "expired"})
    private String status;

    @Schema(description = "登录Token（当status为confirmed时返回）")
    private String accessToken;

    @Schema(description = "刷新Token（当status为confirmed时返回）")
    private String refreshToken;

    @Schema(description = "会员信息（当status为confirmed时返回）")
    private LoginResultVO memberInfo;
}
