🏗️ 移动 TreeNode 模型到 common-util 包中,以便减少 common-util 包的依赖

This commit is contained in:
b2baccline
2021-08-23 11:00:49 +08:00
parent 11930b8dc4
commit 4b4c67783b
7 changed files with 21 additions and 23 deletions

View File

@@ -12,6 +12,10 @@
<artifactId>ballcat-common-security</artifactId>
<dependencies>
<dependency>
<groupId>com.hccake</groupId>
<artifactId>ballcat-common-model</artifactId>
</dependency>
<dependency>
<groupId>com.hccake</groupId>
<artifactId>ballcat-common-util</artifactId>
@@ -59,6 +63,12 @@
<artifactId>spring-data-redis</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@@ -11,17 +11,7 @@
<artifactId>ballcat-common-util</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.hccake</groupId>
<artifactId>ballcat-common-model</artifactId>
</dependency>
<!-- json 工具支持, 默认 jackson 按需替换-->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
@@ -43,28 +33,27 @@
<optional>true</optional>
</dependency>
<!-- Hutool 工具 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-extra</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -1,4 +1,4 @@
package com.hccake.ballcat.common.model.tree;
package com.hccake.ballcat.common.util.tree;
import java.util.List;

View File

@@ -1,7 +1,6 @@
package com.hccake.ballcat.common.util;
package com.hccake.ballcat.common.util.tree;
import cn.hutool.core.collection.CollectionUtil;
import com.hccake.ballcat.common.model.tree.TreeNode;
import lombok.experimental.UtilityClass;
import java.util.*;