package com.wzj.soopin.content.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;

import java.util.List;

/**
 * 文章分类
 *
 * @author pikachu
 * @author Bulbasaur
 * @since 2020/12/10 17:42
 */
@Data
@TableName("cont_article_category")
@Schema(description="文章分类")
public class ArticleCategoryVO extends BaseAudit {

    @TableId
    private  Long id;
    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;
    /**
     * 父id
     */
    @Schema(description = "父id")
    private Long parentId;
    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
    /**
     * 层级
     */
    @Schema(description = "层级")
    private Integer level;
    /**
     * 类型
     */
    @Schema(description = "类型")
    private Integer type;


    private List<ArticleCategoryVO> children;

    private ArticleCategoryVO parent;

}
