xin
5 days ago 982313135d1c239fe3b20e4c5664781f92d40aca
oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java
@@ -1,8 +1,10 @@
package com.oying.modules.pc.product.view;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
@@ -13,13 +15,75 @@
@Data
public class ProductCustomerView {
    private Long productId;
    private String title;
    private BigDecimal price;
    private Double score;           // 评分
    private Integer sold;    // 月销量
    //private Integer sold;    // 月销量
    private List<ProductImageCustomerView> mainImageList;
    private List<ProductLabelCustomerView> labelList;
    @ApiModelProperty(value = "ID")
    private Long productId;
    @ApiModelProperty(value = "店铺ID")
    private Long storeId;
    @ApiModelProperty(value = "条形码")
    private String barcode;
    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "商品标题")
    private String title;
    @ApiModelProperty(value = "一级分类ID")
    private Long categoryId;
    @ApiModelProperty(value = "二级分类ID")
    private Long secondCategoryId;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "主图地址")
    private String mainImageUrl;
    @ApiModelProperty(value = "商品描述")
    private String description;
    @ApiModelProperty(value = "销售价格")
    private BigDecimal price;
    @ApiModelProperty(value = "库存数量")
    private Integer stockQuantity;
    @ApiModelProperty(value = "起售数量")
    private Integer minPurchaseQuantity;
    @ApiModelProperty(value = "重量(单位:g)")
    private Integer weight;
    @ApiModelProperty(value = "宽度(单位:厘米)")
    private Integer width;
    @ApiModelProperty(value = "长度(单位:厘米)")
    private Integer length;
    @ApiModelProperty(value = "高度(单位:厘米)")
    private Integer height;
    @ApiModelProperty(value = "是否支持退货")
    private Integer returns;
    @ApiModelProperty(value = "是否支持自提")
    private Integer selfPickup;
    @ApiModelProperty(value = "版本号")
    private Long version;
    @ApiModelProperty(value = "销量")
    private Integer totalUnitsSold = 0;
    @ApiModelProperty(value = "月销售量")
    private Integer monthlyUnitsSold = 0;
    private List<ProductImageCustomerView> images = new ArrayList<>();
    private List<ProductLabelCustomerView> labels = new ArrayList<>();
}