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