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;

/**
 * 商品sku列表查询参数
 *
 * @author 科技小王子
 * @since 2025-05-01 09:43:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopGoodsSkuParam对象", description = "商品sku列表查询参数")
public class ShopGoodsSkuParam 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 goodsId;

    @Schema(description = "商品属性索引值 (attr_value|attr_value[|....])")
    private String sku;

    @Schema(description = "商品图片")
    private String image;

    @Schema(description = "商品价格")
    @QueryField(type = QueryType.EQ)
    private BigDecimal price;

    @Schema(description = "市场价格")
    @QueryField(type = QueryType.EQ)
    private BigDecimal salePrice;

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

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

    @Schema(description = "sku编码")
    private String skuNo;

    @Schema(description = "商品条码")
    private String barCode;

    @Schema(description = "重量")
    @QueryField(type = QueryType.EQ)
    private BigDecimal weight;

    @Schema(description = "体积")
    @QueryField(type = QueryType.EQ)
    private BigDecimal volume;

    @Schema(description = "唯一值")
    private String uuid;

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

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

}
