[修改][商品分类]

1. 删除 description 分类描述字段
2. 新增big_pic_url PC端分类图字段
pull/2/head
wangzhs 2023-03-15 13:44:13 +08:00
parent 4a01348e0b
commit b89d7ff384
3 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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 '',