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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品日志表查询参数
 *
 * @author 科技小王子
 * @since 2025-01-11 10:45:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopGoodsLogParam对象", description = "商品日志表查询参数")
public class ShopGoodsLogParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "类型visit,cart,order,pay,collect,refund")
    private String type;

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

    @Schema(description = "是否浏览")
    @QueryField(type = QueryType.EQ)
    private Boolean visitNum;

    @Schema(description = "加入购物车数量")
    @QueryField(type = QueryType.EQ)
    private Integer cartNum;

    @Schema(description = "下单数量")
    @QueryField(type = QueryType.EQ)
    private Integer orderNum;

    @Schema(description = "支付数量")
    @QueryField(type = QueryType.EQ)
    private Integer payNum;

    @Schema(description = "支付金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal payPrice;

    @Schema(description = "商品成本价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal costPrice;

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

    @Schema(description = "退款数量")
    @QueryField(type = QueryType.EQ)
    private Integer refundNum;

    @Schema(description = "退款金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal refundPrice;

    @Schema(description = "收藏")
    @QueryField(type = QueryType.EQ)
    private Boolean collectNum;

    @Schema(description = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

}
