From 59e91a4e9ddaf23cebb12993c774aa899ab22d16 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:22:45 +0800
Subject: [PATCH] 描述
---
src/main/java/com/gk/firework/Domain/Utils/Tree.java | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 104 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Domain/Utils/Tree.java b/src/main/java/com/gk/firework/Domain/Utils/Tree.java
new file mode 100644
index 0000000..af589d5
--- /dev/null
+++ b/src/main/java/com/gk/firework/Domain/Utils/Tree.java
@@ -0,0 +1,104 @@
+package com.gk.firework.Domain.Utils;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+
+import java.util.List;
+
+public class Tree implements java.io.Serializable {
+
+ private static final long serialVersionUID = 980682543891282923L;
+ private Long id;
+ private String text;
+ // open,closed
+ private String state = "open";
+ private boolean checked = false;
+ private Object attributes;
+
+ /** null不输出 **/
+ @JsonInclude(Include.NON_NULL)
+ private List<Tree> children;
+ private String iconCls;
+ private Long pid;
+ /**
+ * ajax,iframe,
+ */
+ private String openMode;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public void setState(Byte opened) {
+ this.state = (null != opened && opened == 1) ? "open" : "closed";
+ }
+
+ public boolean isChecked() {
+ return checked;
+ }
+
+ public void setChecked(boolean checked) {
+ this.checked = checked;
+ }
+
+ public Object getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Object attributes) {
+ this.attributes = attributes;
+ }
+
+ public List<Tree> getChildren() {
+ return children;
+ }
+
+ public void setChildren(List<Tree> children) {
+ this.children = children;
+ }
+
+ public String getIconCls() {
+ return iconCls;
+ }
+
+ public void setIconCls(String iconCls) {
+ this.iconCls = iconCls;
+ }
+
+ public Long getPid() {
+ return pid;
+ }
+
+ public void setPid(Long pid) {
+ this.pid = pid;
+ }
+
+ public String getOpenMode() {
+ return openMode;
+ }
+
+ public void setOpenMode(String openMode) {
+ this.openMode = openMode;
+ }
+
+}
--
Gitblit v1.9.2