| | |
| | | package com.oying.modules.pc.product.view; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.collection.ListUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @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 title; |
| | | |
| | | @ApiModelProperty(value = "状态") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "主图地址") |
| | | private String mainImageUrl; |
| | | |
| | | @ApiModelProperty(value = "商品描述") |
| | | private String description; |
| | | |
| | | @ApiModelProperty(value = "销售价格") |
| | | private BigDecimal price; |
| | | |
| | | @ApiModelProperty(value = "月销售量") |
| | | private Integer monthlySales = 0; |
| | | |
| | | private List<ProductImageCustomerView> images = new ArrayList<>(); |
| | | private List<ProductLabelCustomerView> labels = new ArrayList<>(); |
| | | |
| | | } |