后端:去除 product 模块的 setting getting 方法

This commit is contained in:
YunaiV
2019-04-06 21:31:03 +08:00
parent fa2f76f5ea
commit 652fc37489
57 changed files with 325 additions and 2226 deletions

View File

@@ -1,10 +1,14 @@
package cn.iocoder.mall.product.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* Product 规格
*/
@Data
@Accessors(chain = true)
public class ProductAttrDO extends DeletableDO {
/**
@@ -23,31 +27,4 @@ public class ProductAttrDO extends DeletableDO {
*/
private Integer status;
public Integer getId() {
return id;
}
public ProductAttrDO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ProductAttrDO setName(String name) {
this.name = name;
return this;
}
public Integer getStatus() {
return status;
}
public ProductAttrDO setStatus(Integer status) {
this.status = status;
return this;
}
}
}

View File

@@ -1,10 +1,14 @@
package cn.iocoder.mall.product.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* Product 规格值
*/
@Data
@Accessors(chain = true)
public class ProductAttrValueDO extends DeletableDO {
/**
@@ -27,40 +31,4 @@ public class ProductAttrValueDO extends DeletableDO {
*/
private Integer status;
public Integer getId() {
return id;
}
public ProductAttrValueDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getAttrId() {
return attrId;
}
public ProductAttrValueDO setAttrId(Integer attrId) {
this.attrId = attrId;
return this;
}
public String getName() {
return name;
}
public ProductAttrValueDO setName(String name) {
this.name = name;
return this;
}
public Integer getStatus() {
return status;
}
public ProductAttrValueDO setStatus(Integer status) {
this.status = status;
return this;
}
}
}

View File

@@ -1,10 +1,14 @@
package cn.iocoder.mall.product.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 商品分类
*/
@Data
@Accessors(chain = true)
public class ProductCategoryDO extends DeletableDO {
/**
@@ -41,66 +45,4 @@ public class ProductCategoryDO extends DeletableDO {
*/
private Integer status;
public Integer getId() {
return id;
}
public ProductCategoryDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getPid() {
return pid;
}
public ProductCategoryDO setPid(Integer pid) {
this.pid = pid;
return this;
}
public String getName() {
return name;
}
public ProductCategoryDO setName(String name) {
this.name = name;
return this;
}
public String getDescription() {
return description;
}
public ProductCategoryDO setDescription(String description) {
this.description = description;
return this;
}
public String getPicUrl() {
return picUrl;
}
public ProductCategoryDO setPicUrl(String picUrl) {
this.picUrl = picUrl;
return this;
}
public Integer getSort() {
return sort;
}
public ProductCategoryDO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getStatus() {
return status;
}
public ProductCategoryDO setStatus(Integer status) {
this.status = status;
return this;
}
}
}

View File

@@ -1,10 +1,14 @@
package cn.iocoder.mall.product.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 商品 SKU
*/
@Data
@Accessors(chain = true)
public class ProductSkuDO extends DeletableDO {
/**
@@ -52,68 +56,4 @@ public class ProductSkuDO extends DeletableDO {
// */
// private Integer soldNum;
public Integer getId() {
return id;
}
public ProductSkuDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getSpuId() {
return spuId;
}
public ProductSkuDO setSpuId(Integer spuId) {
this.spuId = spuId;
return this;
}
public Integer getStatus() {
return status;
}
public ProductSkuDO setStatus(Integer status) {
this.status = status;
return this;
}
public String getPicUrl() {
return picUrl;
}
public ProductSkuDO setPicUrl(String picUrl) {
this.picUrl = picUrl;
return this;
}
public String getAttrs() {
return attrs;
}
public ProductSkuDO setAttrs(String attrs) {
this.attrs = attrs;
return this;
}
public Integer getPrice() {
return price;
}
public ProductSkuDO setPrice(Integer price) {
this.price = price;
return this;
}
public Integer getQuantity() {
return quantity;
}
public ProductSkuDO setQuantity(Integer quantity) {
this.quantity = quantity;
return this;
}
}
}

View File

@@ -1,10 +1,14 @@
package cn.iocoder.mall.product.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 商品 SPU
*/
@Data
@Accessors(chain = true)
public class ProductSpuDO extends DeletableDO {
/**
@@ -69,94 +73,4 @@ public class ProductSpuDO extends DeletableDO {
*/
private Integer quantity;
public Integer getId() {
return id;
}
public ProductSpuDO setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public ProductSpuDO setName(String name) {
this.name = name;
return this;
}
public String getSellPoint() {
return sellPoint;
}
public ProductSpuDO setSellPoint(String sellPoint) {
this.sellPoint = sellPoint;
return this;
}
public String getDescription() {
return description;
}
public ProductSpuDO setDescription(String description) {
this.description = description;
return this;
}
public Integer getCid() {
return cid;
}
public ProductSpuDO setCid(Integer cid) {
this.cid = cid;
return this;
}
public String getPicUrls() {
return picUrls;
}
public ProductSpuDO setPicUrls(String picUrls) {
this.picUrls = picUrls;
return this;
}
public Boolean getVisible() {
return visible;
}
public ProductSpuDO setVisible(Boolean visible) {
this.visible = visible;
return this;
}
public Integer getSort() {
return sort;
}
public ProductSpuDO setSort(Integer sort) {
this.sort = sort;
return this;
}
public Integer getPrice() {
return price;
}
public ProductSpuDO setPrice(Integer price) {
this.price = price;
return this;
}
public Integer getQuantity() {
return quantity;
}
public ProductSpuDO setQuantity(Integer quantity) {
this.quantity = quantity;
return this;
}
}
}

View File

@@ -1,11 +1,16 @@
package cn.iocoder.mall.product.dataobject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* Product 库存
*/
@Deprecated // TODO 芋艿,咱暂时不加库存表和库存服务
@Data
@Accessors(chain = true)
public class ProductStockDO {
/**
@@ -36,4 +41,4 @@ public class ProductStockDO {
*/
private Integer status;
}
}