From a5f018104e3635b4cc583c2733b4be8c1e962f1e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 25 Apr 2023 21:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../category/vo/ProductCategoryBaseVO.java | 10 +++---- .../category/ProductCategoryDO.java | 26 +++++++------------ 2 files changed, 14 insertions(+), 22 deletions(-) diff --git a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java index 75a73cd41..880657da7 100644 --- a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java +++ b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java @@ -21,10 +21,13 @@ public class ProductCategoryBaseVO { @NotBlank(message = "分类名称不能为空") private String name; - @Schema(description = "分类图片", required = true) - @NotBlank(message = "分类图片不能为空") + @Schema(description = "移动端分类图", required = true) + @NotBlank(message = "移动端分类图不能为空") private String picUrl; + @Schema(description = "PC 端分类图") + private String bigPicUrl; + @Schema(description = "分类排序", required = true, example = "1") private Integer sort; @@ -32,7 +35,4 @@ public class ProductCategoryBaseVO { @NotNull(message = "开启状态不能为空") private Integer status; - //@Schema(description = "PC端分类图") TODO 数据库没有这个字段 - //private String bigPicUrl; - } diff --git a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java index dfa98d80a..3756ea818 100644 --- a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java +++ b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java @@ -9,10 +9,6 @@ import lombok.*; /** * 商品分类 DO * - * 商品分类一共两类: - * 1)一级分类:{@link #parentId} 等于 0 - * 2)二级 + 三级分类:{@link #parentId} 不等于 0 - * * @author 芋道源码 */ @TableName("product_category") @@ -43,30 +39,26 @@ public class ProductCategoryDO extends BaseDO { */ private String name; /** - * 分类图片 + * 移动端分类图 * - * 一级分类:推荐 200 x 100 分辨率 - * 二级 + 三级分类:推荐 100 x 100 分辨率 + * 建议 180*180 分辨率 */ private String picUrl; + /** + * PC 端分类图 + * + * 建议 468*340 分辨率 + */ + private String bigPicUrl; /** * 分类排序 */ private Integer sort; /** * 开启状态 - *

+ * * 枚举 {@link CommonStatusEnum} */ private Integer status; - /** - * 描述 - */ - private String description; - - /** - * PC端分类图 TODO 数据库没有这个字段 - */ - //private String bigPicUrl; }