12345678910111213141516171819202122232425262728293031323334353637383940 |
- package cn.cslg.pas.common.vo;
- import lombok.Data;
- import lombok.experimental.Accessors;
- import java.util.List;
- /**
- * 树结构类
- *
- * @author chenyu
- * @date 2023/8/31
- */
- @Accessors(chain = true)
- @Data
- public class PatentRightTree {
- /**
- * 节点ID(权要排序号)
- */
- private Integer sort;
- /**
- * 父节点ID:顶级节点为-1(父级权要排序号)
- */
- private List<Integer> parentSorts;
- /**
- * 节点名称(权要内容)
- */
- private String content;
- /**
- * 子节点(当前权要的所有子级权要)
- */
- private List<PatentRightTree> children;
- public PatentRightTree(Integer sort, List<Integer> parentSorts, String content) {
- this.sort = sort;
- this.parentSorts = parentSorts;
- this.content = content;
- }
- }
|