[修改][商品分类]
1. 删除 description 分类描述字段 2. 新增big_pic_url PC端分类图字段
This commit is contained in:
parent
4a01348e0b
commit
b89d7ff384
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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 '创建时间',
|
||||
|
Loading…
Reference in New Issue
Block a user