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 科技小王子
 * @since 2025-08-11 23:51:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopUserCouponParam对象", description = "用户优惠券查询参数")
public class ShopUserCouponParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "优惠券模板ID")
    @QueryField(type = QueryType.EQ)
    private Integer couponId;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "优惠券名称")
    private String name;

    @Schema(description = "优惠券描述")
    private String description;

    @Schema(description = "优惠券类型(10满减券 20折扣券 30免费劵)")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "满减券-减免金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal reducePrice;

    @Schema(description = "折扣券-折扣率(0-100)")
    @QueryField(type = QueryType.EQ)
    private Integer discount;

    @Schema(description = "最低消费金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal minPrice;

    @Schema(description = "适用范围(10全部商品 20指定商品 30指定分类)")
    @QueryField(type = QueryType.EQ)
    private Integer applyRange;

    @Schema(description = "适用范围配置(json格式)")
    private String applyRangeConfig;

    @Schema(description = "有效期开始时间")
    private String startTime;

    @Schema(description = "有效期结束时间")
    private String endTime;

    @Schema(description = "使用状态(0未使用 1已使用 2已过期)")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "使用时间")
    private String useTime;

    @Schema(description = "使用订单ID")
    private Long orderId;

    @Schema(description = "使用订单号")
    private String orderNo;

    @Schema(description = "获取方式(10主动领取 20系统发放 30活动赠送)")
    @QueryField(type = QueryType.EQ)
    private Integer obtainType;

    @Schema(description = "获取来源描述")
    private String obtainSource;

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

}
