Commit a5f018104e3635b4cc583c2733b4be8c1e962f1e
1 parent
16060635
调整商品分类的实现
Showing
2 changed files
with
14 additions
and
22 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/admin/category/vo/ProductCategoryBaseVO.java
| @@ -21,10 +21,13 @@ public class ProductCategoryBaseVO { | @@ -21,10 +21,13 @@ public class ProductCategoryBaseVO { | ||
| 21 | @NotBlank(message = "分类名称不能为空") | 21 | @NotBlank(message = "分类名称不能为空") |
| 22 | private String name; | 22 | private String name; |
| 23 | 23 | ||
| 24 | - @Schema(description = "分类图片", required = true) | ||
| 25 | - @NotBlank(message = "分类图片不能为空") | 24 | + @Schema(description = "移动端分类图", required = true) |
| 25 | + @NotBlank(message = "移动端分类图不能为空") | ||
| 26 | private String picUrl; | 26 | private String picUrl; |
| 27 | 27 | ||
| 28 | + @Schema(description = "PC 端分类图") | ||
| 29 | + private String bigPicUrl; | ||
| 30 | + | ||
| 28 | @Schema(description = "分类排序", required = true, example = "1") | 31 | @Schema(description = "分类排序", required = true, example = "1") |
| 29 | private Integer sort; | 32 | private Integer sort; |
| 30 | 33 | ||
| @@ -32,7 +35,4 @@ public class ProductCategoryBaseVO { | @@ -32,7 +35,4 @@ public class ProductCategoryBaseVO { | ||
| 32 | @NotNull(message = "开启状态不能为空") | 35 | @NotNull(message = "开启状态不能为空") |
| 33 | private Integer status; | 36 | private Integer status; |
| 34 | 37 | ||
| 35 | - //@Schema(description = "PC端分类图") TODO 数据库没有这个字段 | ||
| 36 | - //private String bigPicUrl; | ||
| 37 | - | ||
| 38 | } | 38 | } |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/category/ProductCategoryDO.java
| @@ -9,10 +9,6 @@ import lombok.*; | @@ -9,10 +9,6 @@ import lombok.*; | ||
| 9 | /** | 9 | /** |
| 10 | * 商品分类 DO | 10 | * 商品分类 DO |
| 11 | * | 11 | * |
| 12 | - * 商品分类一共两类: | ||
| 13 | - * 1)一级分类:{@link #parentId} 等于 0 | ||
| 14 | - * 2)二级 + 三级分类:{@link #parentId} 不等于 0 | ||
| 15 | - * | ||
| 16 | * @author 芋道源码 | 12 | * @author 芋道源码 |
| 17 | */ | 13 | */ |
| 18 | @TableName("product_category") | 14 | @TableName("product_category") |
| @@ -43,30 +39,26 @@ public class ProductCategoryDO extends BaseDO { | @@ -43,30 +39,26 @@ public class ProductCategoryDO extends BaseDO { | ||
| 43 | */ | 39 | */ |
| 44 | private String name; | 40 | private String name; |
| 45 | /** | 41 | /** |
| 46 | - * 分类图片 | 42 | + * 移动端分类图 |
| 47 | * | 43 | * |
| 48 | - * 一级分类:推荐 200 x 100 分辨率 | ||
| 49 | - * 二级 + 三级分类:推荐 100 x 100 分辨率 | 44 | + * 建议 180*180 分辨率 |
| 50 | */ | 45 | */ |
| 51 | private String picUrl; | 46 | private String picUrl; |
| 52 | /** | 47 | /** |
| 48 | + * PC 端分类图 | ||
| 49 | + * | ||
| 50 | + * 建议 468*340 分辨率 | ||
| 51 | + */ | ||
| 52 | + private String bigPicUrl; | ||
| 53 | + /** | ||
| 53 | * 分类排序 | 54 | * 分类排序 |
| 54 | */ | 55 | */ |
| 55 | private Integer sort; | 56 | private Integer sort; |
| 56 | /** | 57 | /** |
| 57 | * 开启状态 | 58 | * 开启状态 |
| 58 | - * <p> | 59 | + * |
| 59 | * 枚举 {@link CommonStatusEnum} | 60 | * 枚举 {@link CommonStatusEnum} |
| 60 | */ | 61 | */ |
| 61 | private Integer status; | 62 | private Integer status; |
| 62 | - /** | ||
| 63 | - * 描述 | ||
| 64 | - */ | ||
| 65 | - private String description; | ||
| 66 | - | ||
| 67 | - /** | ||
| 68 | - * PC端分类图 TODO 数据库没有这个字段 | ||
| 69 | - */ | ||
| 70 | - //private String bigPicUrl; | ||
| 71 | 63 | ||
| 72 | } | 64 | } |