package org.jeecg.modules.desk.vo; import lombok.Data; import org.jeecg.modules.desk.entity.DeskFile; import java.util.ArrayList; import java.util.List; @Data public class DeskFileTree { private String id; private String pid; private String key; private String value; private String title; private String path; private List children; public DeskFileTree(DeskFile file) { this.id = file.getId(); this.pid = file.getPid(); this.key = file.getId(); this.path = file.getName(); this.value = file.getId(); this.title = file.getName(); this.children = new ArrayList();; } }