/** * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) *

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package cn.stylefeng.guns.base.pojo.node; import cn.stylefeng.roses.kernel.model.tree.Tree; import lombok.Data; import java.util.List; /** * jquery ztree 插件的节点 * * @author fengshuonan * @date 2017年2月17日 下午8:25:14 */ @Data public class TreeviewNode implements Tree { /** * 附加信息,一般用于存业务id */ private String tags; /** * 父级id */ private String parentId; /** * 节点名称 */ private String text; /** * 子节点 */ private List nodes; @Override public String getNodeId() { return tags; } @Override public String getNodeParentId() { return parentId; } @Override public void setChildrenNodes(List childrenNodes) { this.nodes = childrenNodes; } }