Browse Source

微服务拆分1.0 模块拆分

wangqi49 3 months ago
commit
09981fae25
53 changed files with 1328 additions and 0 deletions
  1. 8 0
      .idea/.gitignore
  2. 42 0
      .idea/compiler.xml
  3. 21 0
      .idea/encodings.xml
  4. 40 0
      .idea/jarRepositories.xml
  5. 28 0
      .idea/misc.xml
  6. 6 0
      .idea/vcs.xml
  7. 314 0
      pom.xml
  8. 19 0
      webchat-admin/.mvn/wrapper/maven-wrapper.properties
  9. 44 0
      webchat-admin/pom.xml
  10. 13 0
      webchat-admin/src/main/java/com/webchat/admin/WebchatAdminApplication.java
  11. 1 0
      webchat-admin/src/main/resources/application.properties
  12. 45 0
      webchat-aigc/pom.xml
  13. 13 0
      webchat-aigc/src/main/java/com/webchat/aigc/WebchatAIGCApplication.java
  14. 1 0
      webchat-aigc/src/main/resources/application.properties
  15. 13 0
      webchat-aigc/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java
  16. 19 0
      webchat-api/.mvn/wrapper/maven-wrapper.properties
  17. 44 0
      webchat-api/pom.xml
  18. 13 0
      webchat-api/src/main/java/com/webchat/api/WebchatApiApplication.java
  19. 1 0
      webchat-api/src/main/resources/application.properties
  20. 19 0
      webchat-client/.mvn/wrapper/maven-wrapper.properties
  21. 44 0
      webchat-client/pom.xml
  22. 13 0
      webchat-client/src/main/java/com/webchat/client/WebchatClientApplication.java
  23. 1 0
      webchat-client/src/main/resources/application.properties
  24. 23 0
      webchat-common/pom.xml
  25. 44 0
      webchat-connect/pom.xml
  26. 13 0
      webchat-connect/src/main/java/com/webchat/connect/WebchatConnectApplication.java
  27. 1 0
      webchat-connect/src/main/resources/application.properties
  28. 13 0
      webchat-connect/src/test/java/com/webchat/connect/WebchatPgcApplicationTests.java
  29. 25 0
      webchat-domain/pom.xml
  30. 42 0
      webchat-eurake/pom.xml
  31. 20 0
      webchat-eurake/src/main/java/com/webchat/webchateurake/WebchatEurakeApplication.java
  32. 1 0
      webchat-eurake/src/main/resources/application.properties
  33. 13 0
      webchat-eurake/src/test/java/com/webchat/webchateurake/WebchatEurakeApplicationTests.java
  34. 64 0
      webchat-pgc/pom.xml
  35. 13 0
      webchat-pgc/src/main/java/com/webchat/pgc/WebchatPGCApplication.java
  36. 1 0
      webchat-pgc/src/main/resources/application.properties
  37. 13 0
      webchat-pgc/src/test/java/com/webchat/connect/WebchatPgcApplicationTests.java
  38. 32 0
      webchat-remote/pom.xml
  39. 19 0
      webchat-sso/.mvn/wrapper/maven-wrapper.properties
  40. 44 0
      webchat-sso/pom.xml
  41. 13 0
      webchat-sso/src/main/java/com/webchat/web/WebchatSSOApplication.java
  42. 1 0
      webchat-sso/src/main/resources/application.properties
  43. 56 0
      webchat-ugc/pom.xml
  44. BIN
      webchat-ugc/src/main/java/com/.DS_Store
  45. 13 0
      webchat-ugc/src/main/java/com/webchat/ugc/WebchatUGCApplication.java
  46. 1 0
      webchat-ugc/src/main/resources/application.properties
  47. 13 0
      webchat-ugc/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java
  48. 59 0
      webchat-user/pom.xml
  49. 14 0
      webchat-user/src/main/java/com/webchat/user/WebchatUserApplication.java
  50. 1 0
      webchat-user/src/main/resources/application.properties
  51. 13 0
      webchat-user/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java
  52. 1 0
      webchat-user/target/classes/application.properties
  53. BIN
      webchat-user/target/classes/com/webchat/user/WebchatUserApplication.class

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 42 - 0
.idea/compiler.xml

@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <annotationProcessing>
+      <profile name="Maven default annotation processors profile" enabled="true">
+        <sourceOutputDir name="target/generated-sources/annotations" />
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
+        <outputRelativeToContentRoot value="true" />
+        <module name="webchat-ugc" />
+        <module name="webchat-remote" />
+        <module name="webchat-connect" />
+        <module name="webchat-common" />
+        <module name="webchat-api" />
+        <module name="webchat-domain" />
+        <module name="webchat-user" />
+        <module name="webchat-aigc" />
+        <module name="webchat-sso" />
+        <module name="webchat-client" />
+        <module name="webchat-eurake" />
+        <module name="webchat-pgc" />
+        <module name="webchat-admin" />
+      </profile>
+    </annotationProcessing>
+  </component>
+  <component name="JavacSettings">
+    <option name="ADDITIONAL_OPTIONS_OVERRIDE">
+      <module name="webchat-admin" options="-parameters" />
+      <module name="webchat-aigc" options="-parameters" />
+      <module name="webchat-api" options="-parameters" />
+      <module name="webchat-client" options="-parameters" />
+      <module name="webchat-common" options="-parameters" />
+      <module name="webchat-connect" options="-parameters" />
+      <module name="webchat-domain" options="-parameters" />
+      <module name="webchat-eurake" options="-parameters" />
+      <module name="webchat-pgc" options="-parameters" />
+      <module name="webchat-remote" options="-parameters" />
+      <module name="webchat-sso" options="-parameters" />
+      <module name="webchat-ugc" options="-parameters" />
+      <module name="webchat-user" options="-parameters" />
+    </option>
+  </component>
+</project>

+ 21 - 0
.idea/encodings.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-admin/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-aigc/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-api/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-client/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-common/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-connect/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-domain/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-eurake/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-pgc/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-remote/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-sso/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-ugc/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-user/src/main/java" charset="UTF-8" />
+    <file url="file://$PROJECT_DIR$/webchat-web/src/main/java" charset="UTF-8" />
+  </component>
+</project>

+ 40 - 0
.idea/jarRepositories.xml

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="RemoteRepositoriesConfiguration">
+    <remote-repository>
+      <option name="id" value="baidu-nexus" />
+      <option name="name" value="baidu-nexus" />
+      <option name="url" value="https://maven.baidu-int.com/nexus/content/groups/public" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="Baidu_Local_Snapshots" />
+      <option name="name" value="Baidu_Local_Snapshots" />
+      <option name="url" value="https://maven.baidu-int.com/nexus/content/repositories/Baidu_Local_Snapshots" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Central Repository" />
+      <option name="url" value="https://repo.maven.apache.org/maven2" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="baidu-nexus-snapshot" />
+      <option name="name" value="baidu-nexus-snapshot" />
+      <option name="url" value="https://maven.baidu-int.com/nexus/content/groups/public-snapshots" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Maven Central repository" />
+      <option name="url" value="https://repo1.maven.org/maven2" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="jboss.community" />
+      <option name="name" value="JBoss Community repository" />
+      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="Baidu_Local" />
+      <option name="name" value="Baidu_Local" />
+      <option name="url" value="https://maven.baidu-int.com/nexus/content/repositories/Baidu_Local" />
+    </remote-repository>
+  </component>
+</project>

+ 28 - 0
.idea/misc.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
+  <component name="MavenProjectsManager">
+    <option name="originalFiles">
+      <list>
+        <option value="$PROJECT_DIR$/webchat-domain/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-common/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-eurake/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-remote/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-pgc/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-connect/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-aigc/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-ugc/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-web/pom.xml" />
+        <option value="$PROJECT_DIR$/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-api/pom.xml" />
+        <option value="$PROJECT_DIR$/webchat-client/pom.xml" />
+      </list>
+    </option>
+    <option name="ignoredFiles">
+      <set>
+        <option value="$PROJECT_DIR$/webchat-web/pom.xml" />
+      </set>
+    </option>
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 314 - 0
pom.xml

@@ -0,0 +1,314 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>org.springframework.boot</groupId>
+		<artifactId>spring-boot-starter-parent</artifactId>
+		<version>2.7.11</version>
+	</parent>
+
+	<groupId>com.webchat</groupId>
+	<artifactId>webchat</artifactId>
+	<version>0.0.1-SNAPSHOT</version>
+	<packaging>pom</packaging>
+
+	<name>webchat</name>
+	<description>web chat spring cloud</description>
+
+	<modules>
+		<module>webchat-api</module>
+		<module>webchat-sso</module>
+		<module>webchat-domain</module>
+		<module>webchat-common</module>
+		<module>webchat-remote</module>
+		<module>webchat-pgc</module>
+		<module>webchat-ugc</module>
+		<module>webchat-aigc</module>
+		<module>webchat-connect</module>
+		<module>webchat-eurake</module>
+		<module>webchat-user</module>
+		<module>webchat-client</module>
+		<module>webchat-admin</module>
+
+	</modules>
+
+	<properties>
+		<project.build.jdk>17</project.build.jdk>
+		<java.version>17</java.version>
+		<lombok.version>1.18.26</lombok.version>
+		<tomcat.version>9.0.33</tomcat.version>
+		<commonslang3.verison>3.8.1</commonslang3.verison>
+		<common.io.version>2.4</common.io.version>
+		<common.codec.version>1.9</common.codec.version>
+		<common.file.version>1.3</common.file.version>
+		<commons.collections.version>3.2.1</commons.collections.version>
+		<httpclient.version>4.5.1</httpclient.version>
+		<httpmime.version>4.5.1</httpmime.version>
+		<fastjson.version>1.2.41</fastjson.version>
+		<httpcore-version>4.4</httpcore-version>
+		<httpclient-version>4.5</httpclient-version>
+		<commons-logging-version>1.1.3</commons-logging-version>
+		<logback-classic-version>1.2.3</logback-classic-version>
+		<log4j-version>1.2.16</log4j-version>
+		<guava-version>20.0</guava-version>
+		<httpcomponents-version>4.5.6</httpcomponents-version>
+		<commons-collections4-version>4.1</commons-collections4-version>
+		<mapper.version>4.0.0</mapper.version>
+		<elasticsearch.version>7.4.2</elasticsearch.version>
+		<!-- 适合JDK8 打包 -->
+<!--		<lombok.version>1.18.10</lombok.version>-->
+		<!-- 高版本JDK打包 -->
+		<lombok.version>1.18.30</lombok.version>
+	</properties>
+
+	<dependencies>
+
+		<!-- 二维码 -->
+		<dependency>
+			<groupId>com.google.zxing</groupId>
+			<artifactId>core</artifactId>
+			<version>3.1.0</version>
+		</dependency>
+		<dependency>
+			<groupId>com.google.zxing</groupId>
+			<artifactId>javase</artifactId>
+			<version>3.1.0</version>
+		</dependency>
+
+		<!-- 添加依赖 -->
+		<dependency>
+			<groupId>org.apache.tomcat.embed</groupId>
+			<artifactId>tomcat-embed-core</artifactId>
+			<version>${tomcat.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.tomcat</groupId>
+			<artifactId>tomcat-juli</artifactId>
+			<version>${tomcat.version}</version>
+		</dependency>
+
+		<!-- 添加依赖 -->
+		<dependency>
+			<groupId>com.squareup.okhttp3</groupId>
+			<artifactId>okhttp</artifactId>
+			<version>4.12.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-simple</artifactId>
+			<version>2.0.12</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>io.reactivex.rxjava2</groupId>
+			<artifactId>rxjava</artifactId>
+			<version>2.2.21</version>
+		</dependency>
+		<dependency>
+			<groupId>com.google.code.gson</groupId>
+			<artifactId>gson</artifactId>
+			<version>2.10.1</version>
+		</dependency>
+
+		<!-- ################################### 第三方依赖 ################################### -->
+		<!-- 阿里巴巴FastJson -->
+		<dependency>
+			<groupId>com.alibaba</groupId>
+			<artifactId>fastjson</artifactId>
+			<version>${fastjson.version}</version>
+		</dependency>
+
+		<!-- Hack:确保commons-logging的jar包不被引入,否则将和jcl-over-slf4j冲突 -->
+		<dependency>
+			<groupId>commons-logging</groupId>
+			<artifactId>commons-logging</artifactId>
+			<version>${commons-logging-version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<!-- slf4j的实现:logback,用来取代log4j。更快、更强! -->
+		<dependency>
+			<groupId>ch.qos.logback</groupId>
+			<artifactId>logback-classic</artifactId>
+			<version>${logback-classic-version}</version>
+		</dependency>
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+			<version>${log4j-version}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>commons-text</artifactId>
+			<version>1.6</version>
+		</dependency>
+
+		<!--lombok-->
+		<dependency>
+			<groupId>org.projectlombok</groupId>
+			<artifactId>lombok</artifactId>
+			<version>${lombok.version}</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- guava -->
+		<dependency>
+			<groupId>com.google.guava</groupId>
+			<artifactId>guava</artifactId>
+			<version>${guava-version}</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-data-redis</artifactId>
+			<version>1.5.2.RELEASE</version>
+		</dependency>
+
+		<!-- http client -->
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpclient</artifactId>
+			<version>${httpclient-version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpcore</artifactId>
+			<version>${httpcore-version}</version>
+		</dependency>
+
+		<!-- swagger相关-->
+		<dependency>
+			<groupId>io.springfox</groupId>
+			<artifactId>springfox-swagger2</artifactId>
+			<version>2.9.2</version>
+		</dependency>
+		<dependency>
+			<groupId>io.springfox</groupId>
+			<artifactId>springfox-swagger-ui</artifactId>
+			<version>2.9.2</version>
+		</dependency>
+
+		<!-- 引入common包-->
+		<dependency>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>commons-lang3</artifactId>
+			<version>${commonslang3.verison}</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-io</groupId>
+			<artifactId>commons-io</artifactId>
+			<version>${common.io.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-fileupload</groupId>
+			<artifactId>commons-fileupload</artifactId>
+			<version>${common.file.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-collections</groupId>
+			<artifactId>commons-collections</artifactId>
+			<version>${commons.collections.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-codec</groupId>
+			<artifactId>commons-codec</artifactId>
+			<version>${common.codec.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpclient</artifactId>
+			<version>${httpclient.version}</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpmime</artifactId>
+			<version>${httpmime.version}</version>
+		</dependency>
+
+		<!-- ################################### 集成websocket ################################### -->
+		<!-- 引入 websocket 依赖类-->
+		<!-- Springboot对websocket的能力支持-->
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-websocket</artifactId>
+		</dependency>
+		<!-- ServerEndpoint注解来自于javax.websocket-api这个包 -->
+		<dependency>
+			<groupId>javax.websocket</groupId>
+			<artifactId>javax.websocket-api</artifactId>
+			<version>1.1</version>
+			<scope>provided</scope>
+		</dependency>
+		<!-- tomcat服务队websocket的支持 -->
+		<dependency>
+			<groupId>org.apache.tomcat.embed</groupId>
+			<artifactId>tomcat-embed-websocket</artifactId>
+			<version>9.0.33</version>
+		</dependency>
+
+		<!-- ################################### Spring、Spring Boot依赖 ################################### -->
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-freemarker</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-thymeleaf</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-web</artifactId>
+			<exclusions>
+				<exclusion>
+					<groupId>org.springframework.boot</groupId>
+					<artifactId>spring-boot-starter-tomcat</artifactId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-test</artifactId>
+			<scope>test</scope>
+			<exclusions>
+				<exclusion>
+					<groupId>org.junit.vintage</groupId>
+					<artifactId>junit-vintage-engine</artifactId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.httpcomponents</groupId>
+			<artifactId>httpclient</artifactId>
+			<version>4.5</version>
+		</dependency>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
+			<exclusions>
+				<exclusion>
+					<groupId>lucene-core</groupId>
+					<artifactId>org.apache.lucene</artifactId>
+				</exclusion>
+			</exclusions>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+</project>

+ 19 - 0
webchat-admin/.mvn/wrapper/maven-wrapper.properties

@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+wrapperVersion=3.3.2
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

+ 44 - 0
webchat-admin/pom.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-admin</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-admin</name>
+    <description>webchat-admin</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-admin/src/main/java/com/webchat/admin/WebchatAdminApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.admin;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatAdminApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatAdminApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-admin/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-admin

+ 45 - 0
webchat-aigc/pom.xml

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-aigc</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-aigc</name>
+    <description>webchat-aigc</description>
+
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-aigc/src/main/java/com/webchat/aigc/WebchatAIGCApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.aigc;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatAIGCApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatAIGCApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-aigc/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-aigc

+ 13 - 0
webchat-aigc/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatPgcApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 19 - 0
webchat-api/.mvn/wrapper/maven-wrapper.properties

@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+wrapperVersion=3.3.2
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

+ 44 - 0
webchat-api/pom.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-api</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-api</name>
+    <description>webchat-api</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-api/src/main/java/com/webchat/api/WebchatApiApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.api;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatApiApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatApiApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-api/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-api

+ 19 - 0
webchat-client/.mvn/wrapper/maven-wrapper.properties

@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+wrapperVersion=3.3.2
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

+ 44 - 0
webchat-client/pom.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-client</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-client</name>
+    <description>webchat-client</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-client/src/main/java/com/webchat/client/WebchatClientApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.web;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatClientApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatClientApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-client/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-client

+ 23 - 0
webchat-common/pom.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-common</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+</project>

+ 44 - 0
webchat-connect/pom.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-connect</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+    <name>webchat-connect</name>
+    <description>webchat-connect</description>
+
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-connect/src/main/java/com/webchat/connect/WebchatConnectApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatConnectApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatConnectApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-connect/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-connect

+ 13 - 0
webchat-connect/src/test/java/com/webchat/connect/WebchatPgcApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatPgcApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 25 - 0
webchat-domain/pom.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-domain</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <properties>
+
+    </properties>
+
+    <dependencies>
+
+    </dependencies>
+</project>

+ 42 - 0
webchat-eurake/pom.xml

@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-eurake</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-eurake</name>
+    <description>webchat-eurake</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 20 - 0
webchat-eurake/src/main/java/com/webchat/webchateurake/WebchatEurakeApplication.java

@@ -0,0 +1,20 @@
+package com.webchat.webchateurake;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+@SpringBootApplication
+@EnableEurekaServer
+public class WebchatEurakeApplication extends SpringBootServletInitializer {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatEurakeApplication.class, args);
+    }
+
+    @Override
+    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+        return application.sources(WebchatEurakeApplication.class);
+    }
+}

+ 1 - 0
webchat-eurake/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-eurake

+ 13 - 0
webchat-eurake/src/test/java/com/webchat/webchateurake/WebchatEurakeApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.webchateurake;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatEurakeApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 64 - 0
webchat-pgc/pom.xml

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-pgc</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-pgc</name>
+    <description>webchat-pgc</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+
+        <!--引入mysql驱动-->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.46</version>
+        </dependency>
+        <!--使用JPA作为ORM框架 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.webchat</groupId>
+            <artifactId>webchat-remote</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-pgc/src/main/java/com/webchat/pgc/WebchatPGCApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.pgc;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatPGCApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatPGCApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-pgc/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-pgc

+ 13 - 0
webchat-pgc/src/test/java/com/webchat/connect/WebchatPgcApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatPgcApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 32 - 0
webchat-remote/pom.xml

@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-remote</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.webchat</groupId>
+            <artifactId>webchat-domain</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+</project>

+ 19 - 0
webchat-sso/.mvn/wrapper/maven-wrapper.properties

@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+wrapperVersion=3.3.2
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

+ 44 - 0
webchat-sso/pom.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-sso</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-sso</name>
+    <description>webchat-sso</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
webchat-sso/src/main/java/com/webchat/web/WebchatSSOApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.web;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatSSOApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatSSOApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-sso/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-sso

+ 56 - 0
webchat-ugc/pom.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-ugc</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-ugc</name>
+    <description>webchat-ugc</description>
+
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+
+        <!--引入mysql驱动-->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.46</version>
+        </dependency>
+        <!--使用JPA作为ORM框架 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

BIN
webchat-ugc/src/main/java/com/.DS_Store


+ 13 - 0
webchat-ugc/src/main/java/com/webchat/ugc/WebchatUGCApplication.java

@@ -0,0 +1,13 @@
+package com.webchat.ugc;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class WebchatUGCApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatUGCApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-ugc/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-aigc

+ 13 - 0
webchat-ugc/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatPgcApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 59 - 0
webchat-user/pom.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.webchat</groupId>
+        <artifactId>webchat</artifactId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+
+    <groupId>com.webchat</groupId>
+    <artifactId>webchat-user</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>webchat-user</name>
+    <description>webchat-user</description>
+
+
+    <properties>
+
+    </properties>
+
+    <dependencies>
+
+        <!--引入mysql驱动-->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.46</version>
+        </dependency>
+        <!--使用JPA作为ORM框架 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 14 - 0
webchat-user/src/main/java/com/webchat/user/WebchatUserApplication.java

@@ -0,0 +1,14 @@
+package com.webchat.user;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+
+@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
+public class WebchatUserApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(WebchatUserApplication.class, args);
+    }
+
+}

+ 1 - 0
webchat-user/src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-user

+ 13 - 0
webchat-user/src/test/java/com/webchat/pgc/WebchatPgcApplicationTests.java

@@ -0,0 +1,13 @@
+package com.webchat.connect;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class WebchatPgcApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}

+ 1 - 0
webchat-user/target/classes/application.properties

@@ -0,0 +1 @@
+spring.application.name=webchat-user

BIN
webchat-user/target/classes/com/webchat/user/WebchatUserApplication.class