package com.snack.server.module.seckill.vo;

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

import java.io.Serializable;

/**
 * 抢购结果 VO（用户端查询）
 */
@Data
@Schema(description = "抢购结果")
public class SeckillResultVO implements Serializable {

    @Schema(description = "排队号 / 订单号（用于轮询查询）")
    private String orderNo;

    @Schema(description = "状态：0-排队中 1-抢购成功 2-抢购失败")
    private Integer status;

    @Schema(description = "状态文本")
    private String statusText;

    @Schema(description = "失败原因（仅失败时有值）")
    private String message;

    @Schema(description = "主订单 ID（成功时返回）")
    private Long mainOrderId;
}
