package com.gxwebsoft.auto.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 扫码登录状态响应
 *
 * @author 科技小王子
 * @since 2025-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "扫码登录状态响应")
public class QrLoginStatusResponse {

    @Schema(description = "状态: pending-等待扫码, scanned-已扫码, confirmed-已确认, expired-已过期")
    private String status;

    @Schema(description = "JWT访问令牌(仅在confirmed状态时返回)")
    private String accessToken;

    @Schema(description = "用户信息(仅在confirmed状态时返回)")
    private Object userInfo;

    @Schema(description = "剩余过期时间(秒)")
    private Long expiresIn;

}
