shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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);
}