From 1810632e609c5d659b9613de966cc08b27a4e3c5 Mon Sep 17 00:00:00 2001
From: chaos <7676076@qq.com>
Date: Tue, 15 Jul 2025 11:17:53 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84):=20?=
=?UTF-8?q?=E9=87=8D=E6=9E=84=E9=A1=B9=E7=9B=AE=E6=A8=A1=E5=9D=97=E5=B9=B6?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-重命名 c_portal 模块为 chaos_api_common
- 新增 chaos_api_domain、chaos_api_interface、chaos_api_service、chaos_api_data、chaos_api_web 和 chaos_api_websocket 模块
- 更新项目依赖,包括 Spring Boot、MyBatis-Plus 和 MySQL连接器
- 移除旧的 PortalApplication 类,创建新的 ChaosApiWebApplication 类作为项目入口
---
.../nopj/chaos/portal/PortalApplication.java | 11 ---
chaos_api_common/pom.xml | 23 ++++++
chaos_api_data/pom.xml | 44 +++++++++++
chaos_api_domain/pom.xml | 28 +++++++
{c_portal => chaos_api_interface}/pom.xml | 31 ++++----
chaos_api_service/pom.xml | 41 ++++++++++
chaos_api_web/pom.xml | 77 +++++++++++++++++++
.../chaos_api/ChaosApiWebApplication.java | 11 +++
chaos_api_websocket/pom.xml | 46 +++++++++++
pom.xml | 57 +++++++++++++-
10 files changed, 343 insertions(+), 26 deletions(-)
delete mode 100644 c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java
create mode 100644 chaos_api_common/pom.xml
create mode 100644 chaos_api_data/pom.xml
create mode 100644 chaos_api_domain/pom.xml
rename {c_portal => chaos_api_interface}/pom.xml (62%)
create mode 100644 chaos_api_service/pom.xml
create mode 100644 chaos_api_web/pom.xml
create mode 100644 chaos_api_web/src/main/java/cn/nopj/chaos_api/ChaosApiWebApplication.java
create mode 100644 chaos_api_websocket/pom.xml
diff --git a/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java b/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java
deleted file mode 100644
index 9551801..0000000
--- a/c_portal/src/main/java/cn/nopj/chaos/portal/PortalApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package cn.nopj.chaos.portal;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication(scanBasePackages = "cn.nopj.chaos")
-public class PortalApplication {
- public static void main(String[] args) {
- SpringApplication.run(PortalApplication.class,args);
- }
-}
diff --git a/chaos_api_common/pom.xml b/chaos_api_common/pom.xml
new file mode 100644
index 0000000..14197f9
--- /dev/null
+++ b/chaos_api_common/pom.xml
@@ -0,0 +1,23 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_common
+ jar
+ chaos_api_common
+ Common utilities and configurations
+
+
+ 21
+ 21
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/chaos_api_data/pom.xml b/chaos_api_data/pom.xml
new file mode 100644
index 0000000..8a5ca58
--- /dev/null
+++ b/chaos_api_data/pom.xml
@@ -0,0 +1,44 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_data
+ jar
+ chaos_api_data
+ Data access layer (Repository, Mapper)
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+ cn.nopj
+ chaos_api_domain
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_common
+ ${project.version}
+
+
+
+ com.baomidou
+ mybatis-plus-spring-boot3-starter
+
+
+
+ com.mysql
+ mysql-connector-j
+
+
+
\ No newline at end of file
diff --git a/chaos_api_domain/pom.xml b/chaos_api_domain/pom.xml
new file mode 100644
index 0000000..75c99b4
--- /dev/null
+++ b/chaos_api_domain/pom.xml
@@ -0,0 +1,28 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_domain
+ jar
+ chaos_api_domain
+ Domain models and entities
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+ com.baomidou
+ mybatis-plus
+
+
+
\ No newline at end of file
diff --git a/c_portal/pom.xml b/chaos_api_interface/pom.xml
similarity index 62%
rename from c_portal/pom.xml
rename to chaos_api_interface/pom.xml
index fc7cb5f..2616d64 100644
--- a/c_portal/pom.xml
+++ b/chaos_api_interface/pom.xml
@@ -9,7 +9,23 @@
1.0-SNAPSHOT
- c_portal
+ chaos_api_interface
+ jar
+ chaos_api_interface
+ Service interfaces and DTOs
+
+
+
+ cn.nopj
+ chaos_api_common
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_domain
+ ${project.version}
+
+
21
@@ -17,17 +33,4 @@
UTF-8
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-autoconfigure
-
-
-
\ No newline at end of file
diff --git a/chaos_api_service/pom.xml b/chaos_api_service/pom.xml
new file mode 100644
index 0000000..c10332a
--- /dev/null
+++ b/chaos_api_service/pom.xml
@@ -0,0 +1,41 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_service
+ jar
+ chaos_api_service
+ Core business logic and service implementations
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+ cn.nopj
+ chaos_api_interface
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_data
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_common
+ ${project.version}
+
+
+
+
\ No newline at end of file
diff --git a/chaos_api_web/pom.xml b/chaos_api_web/pom.xml
new file mode 100644
index 0000000..8b342be
--- /dev/null
+++ b/chaos_api_web/pom.xml
@@ -0,0 +1,77 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_web
+ jar
+ chaos_api_web
+ Web layer (Controllers, main application)
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+ cn.nopj
+ chaos_api_interface
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_service
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_common
+ ${project.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
+
+ org.springframework.boot
+ spring-boot-starter-log4j2
+
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chaos_api_web/src/main/java/cn/nopj/chaos_api/ChaosApiWebApplication.java b/chaos_api_web/src/main/java/cn/nopj/chaos_api/ChaosApiWebApplication.java
new file mode 100644
index 0000000..d600772
--- /dev/null
+++ b/chaos_api_web/src/main/java/cn/nopj/chaos_api/ChaosApiWebApplication.java
@@ -0,0 +1,11 @@
+package cn.nopj.chaos_api;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication(scanBasePackages = "cn.nopj.chaos_api")
+public class ChaosApiWebApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(ChaosApiWebApplication.class, args);
+ }
+}
diff --git a/chaos_api_websocket/pom.xml b/chaos_api_websocket/pom.xml
new file mode 100644
index 0000000..3142656
--- /dev/null
+++ b/chaos_api_websocket/pom.xml
@@ -0,0 +1,46 @@
+
+
+ 4.0.0
+
+ cn.nopj
+ chaos_api
+ 1.0-SNAPSHOT
+
+
+ chaos_api_websocket
+ jar
+ chaos_api_websocket
+ WebSocket services
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+ cn.nopj
+ chaos_api_interface
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_service
+ ${project.version}
+
+
+ cn.nopj
+ chaos_api_common
+ ${project.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 5615fb6..138bce8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,14 @@
1.0-SNAPSHOT
pom
- c_portal
+
+ chaos_api_common
+ chaos_api_domain
+ chaos_api_interface
+ chaos_api_service
+ chaos_api_data
+ chaos_api_web
+ chaos_api_websocket
@@ -26,12 +33,60 @@
spring-boot-starter-web
3.5.3
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+ 3.5.3
+
org.springframework.boot
spring-boot-autoconfigure
3.5.3
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+ 3.5.3
+
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-log4j2
+ 3.5.3
+
+
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+ 3.5.3
+
+
+
+ com.baomidou
+ mybatis-plus-spring-boot3-starter
+ 3.5.12
+
+
+
+ com.mysql
+ mysql-connector-j
+ 9.3.0
+
+
+
+ com.baomidou
+ mybatis-plus
+ 3.5.12
+
\ No newline at end of file