From b89d7ff3841789f33400e33c448da0951263d244 Mon Sep 17 00:00:00 2001 From: wangzhs Date: Wed, 15 Mar 2023 13:44:13 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9][=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=86=E7=B1=BB]=201.=20=E5=88=A0=E9=99=A4=20description=20?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=202.=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9Ebig=5Fpic=5Furl=20PC=E7=AB=AF=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=9B=BE=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/category/vo/ProductCategoryBaseVO.java | 6 +++--- .../dal/dataobject/category/ProductCategoryDO.java | 10 +++++----- .../src/test/resources/sql/create_tables.sql | 2 +- 3 files changed, 9 insertions(+), 9 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 5182bdadd..2d38c933d 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 @@ -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; + } 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 93ec925a9..f79e4f1a8 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 @@ -53,15 +53,15 @@ public class ProductCategoryDO extends BaseDO { * 分类排序 */ private Integer sort; - /** - * 分类描述 - */ - private String description; /** * 开启状态 - * + *

* 枚举 {@link CommonStatusEnum} */ private Integer status; + /** + * PC端分类图 + */ + private String bigPicUrl; } diff --git a/yudao-module-mall/yudao-module-product-biz/src/test/resources/sql/create_tables.sql b/yudao-module-mall/yudao-module-product-biz/src/test/resources/sql/create_tables.sql index 8f53ba72f..e79e987c6 100644 --- a/yudao-module-mall/yudao-module-product-biz/src/test/resources/sql/create_tables.sql +++ b/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 '创建时间',