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 '创建时间',