商品分类提交~

This commit is contained in:
YunaiV
2019-03-04 19:35:07 +08:00
parent 13e9b5526b
commit 5192472ed5
14 changed files with 416 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ public interface ProductCategoryService {
/**
* @return 返回所有产品分类们
*/
List<ProductCategoryBO> getAll();
CommonResult<List<ProductCategoryBO>> getAll();
CommonResult<ProductCategoryBO> addProductCategory(Integer adminId, ProductCategoryAddDTO productCategoryAddDTO);

View File

@@ -1,5 +1,7 @@
package cn.iocoder.mall.product.api.bo;
import java.util.Date;
/**
* 商品分类 BO
*/
@@ -19,6 +21,10 @@ public class ProductCategoryBO {
* 名称
*/
private String name;
/**
* 描述
*/
private String description;
/**
* 分类图片
*/
@@ -27,6 +33,17 @@ public class ProductCategoryBO {
* 排序值
*/
private Integer sort;
/**
* 状态
*
* 1-开启
* 2-关闭
*/
private Integer status;
/**
* 创建时间
*/
private Date createTime;
public Integer getId() {
return id;
@@ -67,4 +84,32 @@ public class ProductCategoryBO {
public void setSort(Integer sort) {
this.sort = sort;
}
public String getDescription() {
return description;
}
public ProductCategoryBO setDescription(String description) {
this.description = description;
return this;
}
public Integer getStatus() {
return status;
}
public ProductCategoryBO setStatus(Integer status) {
this.status = status;
return this;
}
public Date getCreateTime() {
return createTime;
}
public ProductCategoryBO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}

View File

@@ -9,7 +9,7 @@ public class ProductCategoryConstants {
/**
* 状态 - 关闭
*/
public static final Integer STATUS_DISABLE = 1;
public static final Integer STATUS_DISABLE = 2;
/**
* 父分类编号 - 根节点

View File

@@ -25,7 +25,7 @@ public class ProductCategoryAddDTO {
/**
* 分类图片
*/
@NotNull(message = "分类图片不能为空")
// @NotNull(message = "分类图片不能为空")
private String picUrl;
/**
* 排序值

View File

@@ -30,7 +30,7 @@ public class ProductCategoryUpdateDTO {
/**
* 分类图片
*/
@NotNull(message = "分类图片不能为空")
// @NotNull(message = "分类图片不能为空")
private String picUrl;
/**
* 排序值