Sfoglia il codice sorgente

[修改][商品分类]
1. 删除 description 分类描述字段
2. 新增big_pic_url PC端分类图字段

wangzhs 2 anni fa
parent
commit
b89d7ff384

+ 3 - 3
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java

@@ -28,11 +28,11 @@ public class ProductCategoryBaseVO {
     @Schema(description = "分类排序", required = true, example = "1")
     private Integer sort;
 
-    @Schema(description = "分类描述", required = true, example = "描述")
-    private String description;
-
     @Schema(description = "开启状态", required = true, example = "0")
     @NotNull(message = "开启状态不能为空")
     private Integer status;
 
+    @Schema(description = "PC端分类图")
+    private String bigPicUrl;
+
 }

+ 5 - 5
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java

@@ -53,15 +53,15 @@ public class ProductCategoryDO extends BaseDO {
      * 分类排序
      */
     private Integer sort;
-    /**
-     * 分类描述
-     */
-    private String description;
     /**
      * 开启状态
-     *
+     * <p>
      * 枚举 {@link CommonStatusEnum}
      */
     private Integer status;
+    /**
+     * PC端分类图
+     */
+    private String bigPicUrl;
 
 }

+ 1 - 1
yudao-module-mall/yudao-module-product-biz/src/test/resources/sql/create_tables.sql

@@ -56,8 +56,8 @@ CREATE TABLE IF NOT EXISTS `product_category` (
     `id` bigint NOT NULL AUTO_INCREMENT COMMENT '分类编号',
     `parent_id` bigint DEFAULT NULL COMMENT '父分类编号',
     `name` varchar(128) NOT NULL COMMENT '分类名称',
-    `description` varchar(128) NOT NULL COMMENT '分类描述',
     `pic_url` varchar DEFAULT NULL COMMENT '分类图片',
+    `big_pic_url` varchar DEFAULT NULL COMMENT 'PC端分类图',
     `sort` int NOT NULL DEFAULT '0' COMMENT '排序字段',
     `status` bit(1) DEFAULT NULL COMMENT '状态',
     `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',