商品系统项目结构整理

This commit is contained in:
YunaiV
2019-03-03 18:04:06 +08:00
parent eddec34e5d
commit 359d6766f3
38 changed files with 200 additions and 73 deletions

View File

@@ -0,0 +1,11 @@
package cn.iocoder.mall.product.api;
import cn.iocoder.mall.product.api.bo.ProductCategoryBO;
import java.util.List;
public interface ProductCategoryService {
List<ProductCategoryBO> getListByPid(Integer pid);
}

View File

@@ -0,0 +1,9 @@
package cn.iocoder.mall.product.api;
import cn.iocoder.mall.product.api.bo.ProductSpuBO;
public interface ProductSpuService {
ProductSpuBO getProductSpu(Integer id);
}

View File

@@ -0,0 +1,70 @@
package cn.iocoder.mall.product.api.bo;
/**
* 商品分类 BO
*/
public class ProductCategoryBO {
/**
* 分类编号
*/
private Integer id;
/**
* 父分类编号
*
* 如果不存在父级,则 pid = 0 。
*/
private Integer pid;
/**
* 名称
*/
private String name;
/**
* 分类图片
*/
private String picUrl;
/**
* 排序值
*/
private Integer sort;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getPid() {
return pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
}

View File

@@ -0,0 +1,15 @@
package cn.iocoder.mall.product.api.bo;
public class ProductSkuBO {
private Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}

View File

@@ -0,0 +1,15 @@
package cn.iocoder.mall.product.api.bo;
public class ProductSpuBO {
private Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}

View File

@@ -1,4 +0,0 @@
package cn.iocoder.mall.product.service.api;
public interface ProductSpuService {
}