feat(项目结构): 重构项目模块并添加新功能

-重命名 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 类作为项目入口
This commit is contained in:
chaos
2025-07-15 11:17:53 +08:00
parent 7909cbe135
commit 1810632e60
10 changed files with 343 additions and 26 deletions

57
pom.xml
View File

@@ -9,7 +9,14 @@
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>c_portal</module>
<module>chaos_api_common</module>
<module>chaos_api_domain</module>
<module>chaos_api_interface</module>
<module>chaos_api_service</module>
<module>chaos_api_data</module>
<module>chaos_api_web</module>
<module>chaos_api_websocket</module>
</modules>
<properties>
@@ -26,12 +33,60 @@
<artifactId>spring-boot-starter-web</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>3.5.3</version>
</dependency>
<!-- &lt;!&ndash; https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-logging &ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-logging</artifactId>-->
<!-- <version>3.5.3</version>-->
<!-- </dependency>-->
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-log4j2 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-spring-boot3-starter -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>3.5.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.mysql/mysql-connector-j -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>9.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.5.12</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>