调整商品分类的实现

This commit is contained in:
YunaiV 2023-04-25 21:33:59 +08:00
parent 160606356e
commit a5f018104e
2 changed files with 14 additions and 22 deletions

View File

@ -21,10 +21,13 @@ public class ProductCategoryBaseVO {
@NotBlank(message = "分类名称不能为空") @NotBlank(message = "分类名称不能为空")
private String name; private String name;
@Schema(description = "分类图", required = true) @Schema(description = "移动端分类图", required = true)
@NotBlank(message = "分类图不能为空") @NotBlank(message = "移动端分类图不能为空")
private String picUrl; private String picUrl;
@Schema(description = "PC 端分类图")
private String bigPicUrl;
@Schema(description = "分类排序", required = true, example = "1") @Schema(description = "分类排序", required = true, example = "1")
private Integer sort; private Integer sort;
@ -32,7 +35,4 @@ public class ProductCategoryBaseVO {
@NotNull(message = "开启状态不能为空") @NotNull(message = "开启状态不能为空")
private Integer status; private Integer status;
//@Schema(description = "PC端分类图") TODO 数据库没有这个字段
//private String bigPicUrl;
} }

View File

@ -9,10 +9,6 @@ import lombok.*;
/** /**
* 商品分类 DO * 商品分类 DO
* *
* 商品分类一共两类
* 1一级分类{@link #parentId} 等于 0
* 2二级 + 三级分类{@link #parentId} 不等于 0
*
* @author 芋道源码 * @author 芋道源码
*/ */
@TableName("product_category") @TableName("product_category")
@ -43,30 +39,26 @@ public class ProductCategoryDO extends BaseDO {
*/ */
private String name; private String name;
/** /**
* 分类图 * 移动端分类图
* *
* 一级分类推荐 200 x 100 分辨率 * 建议 180*180 分辨率
* 二级 + 三级分类推荐 100 x 100 分辨率
*/ */
private String picUrl; private String picUrl;
/**
* PC 端分类图
*
* 建议 468*340 分辨率
*/
private String bigPicUrl;
/** /**
* 分类排序 * 分类排序
*/ */
private Integer sort; private Integer sort;
/** /**
* 开启状态 * 开启状态
* <p> *
* 枚举 {@link CommonStatusEnum} * 枚举 {@link CommonStatusEnum}
*/ */
private Integer status; private Integer status;
/**
* 描述
*/
private String description;
/**
* PC端分类图 TODO 数据库没有这个字段
*/
//private String bigPicUrl;
} }