package com.ishop.model.vo;
|
|
import com.ishop.model.po.EbMerchantProductCategory;
|
import com.ishop.model.po.EbProductCategory;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* 平台商品分类缓存树使用。
|
* @author 时克英
|
* @date 2023-06-07
|
*/
|
public class ProductCategoryVo extends EbProductCategory {
|
|
public ProductCategoryVo(EbMerchantProductCategory category){
|
this.setId(category.getId());
|
this.setIsDel(category.getIsDel());
|
this.setPid(category.getPid());
|
this.setIcon(category.getIcon());
|
this.setIsShow(category.getIsShow());
|
this.setName(category.getName());
|
this.setSort(category.getSort());
|
}
|
|
public ProductCategoryVo(EbProductCategory category){
|
this.setId(category.getId());
|
this.setIsDel(category.getIsDel());
|
this.setPid(category.getPid());
|
this.setLevel(category.getLevel());
|
this.setIcon(category.getIcon());
|
this.setIsShow(category.getIsShow());
|
this.setName(category.getName());
|
this.setSort(category.getSort());
|
}
|
|
public List<ProductCategoryVo> getChildList() {
|
return childList;
|
}
|
|
public void setChildList(List<ProductCategoryVo> childList) {
|
this.childList = childList;
|
}
|
|
// @ApiModelProperty(value = "子对象列表")
|
private List<ProductCategoryVo> childList = new ArrayList<>(8);
|
}
|