package com.bonus.common.biz.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 单位、工程节点返回实体类
 * @author ma_sh
 */
@Data
public class ProjectTreeNode {

    private String id;

    private String name;

    private String parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String level;

    private String typeKey;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ProjectTreeNode> children = new ArrayList<>();
}
