
package com.tmerclub.cloud.common.product.vo.app;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 分类信息VO
 *
 * @author tmerclub
 * @date 2020-10-28 15:27:24
 */
public class CategoryAppVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "分类id")
    private Long categoryId;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "父ID")
    private Long parentId;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父分类名称")
    private String parentName;

    @Schema(description = "分类图标")
    private String icon;

    @Schema(description = "分类的显示图片")
    private String imgUrl;

    @Schema(description = "分类层级 从0开始")
    private Integer level;

    @Schema(description = "上级/子分类列表")
    private List<CategoryAppVO> categories;

    @Schema(description = "平台一级分类id")
    private Long primaryCategoryId;

    @Schema(description = "分类扣率")
    private Double deductionRate;

    @Schema(description = "分类状态")
    private Integer status;

    /**
     * 序号
     */
    private Integer seq;

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Double getDeductionRate() {
        return deductionRate;
    }

    public void setDeductionRate(Double deductionRate) {
        this.deductionRate = deductionRate;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public List<CategoryAppVO> getCategories() {
        return categories;
    }

    public void setCategories(List<CategoryAppVO> categories) {
        this.categories = categories;
    }

    public Long getPrimaryCategoryId() {
        return primaryCategoryId;
    }

    public void setPrimaryCategoryId(Long primaryCategoryId) {
        this.primaryCategoryId = primaryCategoryId;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "CategoryAppVO{" +
                "categoryId=" + categoryId +
                ", shopId=" + shopId +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", parentName='" + parentName + '\'' +
                ", icon='" + icon + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", level=" + level +
                ", categories=" + categories +
                ", primaryCategoryId=" + primaryCategoryId +
                ", deductionRate=" + deductionRate +
                ", seq=" + seq +
                ", status=" + status +
                '}';
    }
}
