调整商品分类的实现

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

View File

@ -9,10 +9,6 @@ import lombok.*;
/**
* DO
*
*
* 1{@link #parentId} 0
* 2 + {@link #parentId} 0
*
* @author
*/
@TableName("product_category")
@ -43,30 +39,26 @@ public class ProductCategoryDO extends BaseDO {
*/
private String name;
/**
*
*
*
* 200 x 100
* + 100 x 100
* 180*180
*/
private String picUrl;
/**
* PC
*
* 468*340
*/
private String bigPicUrl;
/**
*
*/
private Integer sort;
/**
*
* <p>
*
* {@link CommonStatusEnum}
*/
private Integer status;
/**
*
*/
private String description;
/**
* PC TODO
*/
//private String bigPicUrl;
}