package com.gxwebsoft.shop.param;

import java.math.BigDecimal;
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 xm
 * @since 2026-04-22 17:18:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopFlashSaleActivityParam对象", description = "秒杀活动查询参数")
public class ShopFlashSaleActivityParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "秒杀活动编号")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "秒杀活动名称")
    private String name;

    @Schema(description = "秒杀活动商品")
    private Integer goodsId;

    @Schema(description = "商品skuId")
    private Integer skuId;

    @Schema(description = "商品数量")
    private Integer num;

    @Schema(description = "秒杀活动商品价格")
    private BigDecimal price;

    @Schema(description = "活动状态 0-开启 1-关闭")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "活动开始时间")
    private String startTime;

    @Schema(description = "活动结束时间")
    private String endTime;

    @Schema(description = "活动限购数量")
    private Integer saleLimit;

    @Schema(description = "库存")
    @QueryField(type = QueryType.EQ)
    private Integer stock;

    @Schema(description = "展示类型，0：普通用户，1：新用户")
    @QueryField(type = QueryType.EQ)
    private Integer displayType;

    @Schema(description = "备注")
    private String remark;

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

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "更新者")
    private String updater;

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

}
