package com.snack.server.module.seckill.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * 抢购请求
 */
@Data
@Schema(description = "抢购请求")
public class SeckillBuyReq implements Serializable {

    @NotNull(message = "活动 ID 不能为空")
    @Schema(description = "活动 ID")
    private Long activityId;

    @NotNull(message = "SKU ID 不能为空")
    @Schema(description = "商品 SKU ID")
    private Long skuId;

    @Schema(description = "购买数量（默认 1，受 perLimit 限制）", example = "1")
    private Integer quantity = 1;
}
