package com.red.circle.console.infra.database.rds.dto.admin;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 树形节点.
 * </p>
 *
 * @author pengliang
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TreeNode<T> implements Serializable {

  private static final long serialVersionUID = 1L;

  protected Integer id;

  protected Integer parentId;

  protected List<T> childrens = new ArrayList<>();
}
