package cn.cslg.pas.domain;

import cn.cslg.pas.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 文件夹主表
 * </p>
 *
 * @author 王岩
 * @since 2021-12-17
 */
@Data
@TableName("os_portfolio")
public class ProjectFolder extends BaseEntity<ProjectFolder> {

    /**
     * 文件夹名称
     */
    private String name;

    /**
     * 上级文件夹
     */
    @TableField("pid")
    private Integer parentId;

    /**
     * 专题库id
     */
    @TableField("tid")
    private Integer projectId;

    /**
     * 顺序
     */
    @TableField("`order`")
    private Integer order;

    private String remark;

    @TableField(exist = false)
    private List<ProjectFolder> children;

    @TableField(exist = false)
    private Integer total;
}
