package com.gxwebsoft.shop.param;

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 秒杀活动查询参数
 *
 * @author 科技小王子
 * @since 2026-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopSeckillParam对象", description = "秒杀活动查询参数")
public class ShopSeckillParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "秒杀活动ID")
    @QueryField(type = QueryType.EQ)
    private Integer seckillId;

    @Schema(description = "商品ID")
    @QueryField(type = QueryType.EQ)
    private Integer goodsId;

    @Schema(description = "秒杀价格")
    @QueryField(type = QueryType.EQ)
    private Integer seckillPrice;

    @Schema(description = "状态：0-未开始 1-进行中 2-已结束")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
