package com.gxwebsoft.apps.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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 购物车商品查询参数
 *
 * @author 科技小王子
 * @since 2023-01-14 14:46:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "HualalaCartFoodParam对象", description = "购物车商品查询参数")
public class HualalaCartFoodParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

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

    @ApiModelProperty(value = "总数量")
    @QueryField(type = QueryType.EQ)
    private Integer foodId;

    @ApiModelProperty(value = "菜品名称")
    private String foodName;

    @ApiModelProperty(value = "skuId")
    private String skuId;

    @ApiModelProperty(value = "店铺id")
    @QueryField(type = QueryType.EQ)
    private Integer shopId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "店铺标志")
    private String shopLogo;

    @ApiModelProperty(value = "商品图")
    private String coverUrl;

    @ApiModelProperty(value = "售价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal sellPrice;

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

}
