From a7d2a73c1b35af72c7d43ea8cfcfc9c1cda2b5f2 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Tue, 17 Jun 2025 16:00:42 +0800 Subject: [PATCH] feat(product): 优化商品图片功能 refactor(store): 重构店铺-商户关联 fix(api): 标准化接口字段 --- oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java | 40 +++++++++++++++++++++++++++++++++------- 1 files changed, 33 insertions(+), 7 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java b/oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java index bf2ca91..521debc 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java +++ b/oying-system/src/main/java/com/oying/modules/pc/product/view/ProductCustomerView.java @@ -1,8 +1,14 @@ 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; /** @@ -13,13 +19,33 @@ @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<>(); } -- Gitblit v1.9.3