diff --git a/backend-java/README.md b/backend-java/README.md
deleted file mode 100644
index e176ee9..0000000
--- a/backend-java/README.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# xlxumu Java后端项目
-
-## 项目结构
-
-```
-backend-java/
-├── api/ # API定义
-├── common/ # 公共模块
-├── config-server/ # 配置服务器
-├── docs/ # 文档
-├── gateway/ # 网关服务
-├── registry/ # 服务注册中心
-├── scripts/ # 脚本
-└── services/ # 微服务
- ├── ai-service/ # AI服务
- ├── data-platform-service/ # 数据平台服务
- ├── farming-service/ # 农业管理服务 (端口: 8081)
- ├── finance-service/ # 金融服务
- ├── government-service/ # 政府监管服务
- ├── mall-service/ # 商城服务
- ├── trade-service/ # 交易服务
- └── user-center-service/ # 用户中心服务 (端口: 8082)
-```
-
-## 技术栈
-
-- Java 8+
-- Spring Boot 2.7.x
-- Spring Cloud 2021.x
-- Maven 3.8.x
-- MySQL 8.0
-
-## 环境要求
-
-1. JDK 8或更高版本
-2. Maven 3.8或更高版本
-3. MySQL 8.0
-
-## 快速开始
-
-### 1. 安装依赖
-
-```bash
-# 在backend-java根目录下执行
-mvn clean install
-```
-
-### 2. 配置数据库
-
-确保MySQL服务正在运行,并创建相应的数据库:
-
-```sql
-CREATE DATABASE IF NOT EXISTS xlxumu_farming;
-CREATE DATABASE IF NOT EXISTS xlxumu_user;
-```
-
-### 3. 运行服务
-
-#### 运行farming-service
-
-```bash
-cd services/farming-service
-mvn spring-boot:run
-```
-
-服务将在 http://localhost:8081 启动
-
-#### 运行user-center-service
-
-```bash
-cd services/user-center-service
-mvn spring-boot:run
-```
-
-服务将在 http://localhost:8082 启动
-
-## 服务端口分配
-
-| 服务名称 | 端口 |
-|---------|------|
-| farming-service | 8081 |
-| user-center-service | 8082 |
-
-## 开发指南
-
-1. 所有微服务都继承自根pom.xml
-2. 每个服务都有独立的数据库
-3. 使用Spring Boot Actuator进行健康检查
-4. 使用Spring Cloud Gateway作为API网关
-
-## 构建和部署
-
-```bash
-# 构建所有服务
-mvn clean package
-
-# 构建单个服务
-cd services/farming-service
-mvn clean package
-```
\ No newline at end of file
diff --git a/backend-java/pom.xml b/backend-java/pom.xml
deleted file mode 100644
index 6fde071..0000000
--- a/backend-java/pom.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
- 4.0.0
-
- com.xlxumu
- backend-java
- 1.0.0
- pom
-
- XlMuMu Backend Java
- 锡林郭勒盟地区智慧养殖产业平台后端Java服务
-
-
- api
- gateway
- registry
- config-server
- services
- common
-
-
-
- 1.8
- 1.8
- UTF-8
- 2.7.5
- 2021.0.5
-
-
-
-
-
- org.springframework.boot
- spring-boot-dependencies
- ${spring.boot.version}
- pom
- import
-
-
- org.springframework.cloud
- spring-cloud-dependencies
- ${spring.cloud.version}
- pom
- import
-
-
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/ai-service/pom.xml b/backend-java/services/ai-service/pom.xml
deleted file mode 100644
index 8019334..0000000
--- a/backend-java/services/ai-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
-
- 1.0.0
- jar
-
-
- AI能力服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/ai-service/src/main/java/com/xlxumu/ai/AIServiceApplication.java b/backend-java/services/ai-service/src/main/java/com/xlxumu/ai/AIServiceApplication.java
deleted file mode 100644
index 94a4bb9..0000000
--- a/backend-java/services/ai-service/src/main/java/com/xlxumu/ai/AIServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.ai;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class AIServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(AIServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/ai-service/src/main/resources/application.properties b/backend-java/services/ai-service/src/main/resources/application.properties
deleted file mode 100644
index fbc1166..0000000
--- a/backend-java/services/ai-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8089
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_ai?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/data-platform-service/pom.xml b/backend-java/services/data-platform-service/pom.xml
deleted file mode 100644
index b67b39b..0000000
--- a/backend-java/services/data-platform-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
- data-platform-service
- 1.0.0
- jar
-
- data-platform-service
- 数据平台服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/data-platform-service/src/main/java/com/xlxumu/dataplatform/DataPlatformServiceApplication.java b/backend-java/services/data-platform-service/src/main/java/com/xlxumu/dataplatform/DataPlatformServiceApplication.java
deleted file mode 100644
index 27707ec..0000000
--- a/backend-java/services/data-platform-service/src/main/java/com/xlxumu/dataplatform/DataPlatformServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.dataplatform;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class DataPlatformServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(DataPlatformServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/data-platform-service/src/main/resources/application.properties b/backend-java/services/data-platform-service/src/main/resources/application.properties
deleted file mode 100644
index 68630ea..0000000
--- a/backend-java/services/data-platform-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8085
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_data?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/farming-service/pom.xml b/backend-java/services/farming-service/pom.xml
deleted file mode 100644
index 8f37747..0000000
--- a/backend-java/services/farming-service/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
- ../../pom.xml
-
-
- farming-service
- Farming Service
- 养殖管理服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/farming-service/src/main/java/com/xlxumu/farm/FarmingServiceApplication.java b/backend-java/services/farming-service/src/main/java/com/xlxumu/farm/FarmingServiceApplication.java
deleted file mode 100644
index 10862a2..0000000
--- a/backend-java/services/farming-service/src/main/java/com/xlxumu/farm/FarmingServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.farm;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class FarmingServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(FarmingServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/farming-service/src/main/resources/application.properties b/backend-java/services/farming-service/src/main/resources/application.properties
deleted file mode 100644
index cd30b82..0000000
--- a/backend-java/services/farming-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8081
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_farming?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/farming-service/target/classes/application.properties b/backend-java/services/farming-service/target/classes/application.properties
deleted file mode 100644
index cd30b82..0000000
--- a/backend-java/services/farming-service/target/classes/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8081
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_farming?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/farming-service/target/classes/com/xlxumu/farm/FarmingServiceApplication.class b/backend-java/services/farming-service/target/classes/com/xlxumu/farm/FarmingServiceApplication.class
deleted file mode 100644
index 40d62e5..0000000
Binary files a/backend-java/services/farming-service/target/classes/com/xlxumu/farm/FarmingServiceApplication.class and /dev/null differ
diff --git a/backend-java/services/farming-service/target/farming-service-1.0.0.jar b/backend-java/services/farming-service/target/farming-service-1.0.0.jar
deleted file mode 100644
index b434703..0000000
Binary files a/backend-java/services/farming-service/target/farming-service-1.0.0.jar and /dev/null differ
diff --git a/backend-java/services/farming-service/target/maven-archiver/pom.properties b/backend-java/services/farming-service/target/maven-archiver/pom.properties
deleted file mode 100644
index e7b6d9c..0000000
--- a/backend-java/services/farming-service/target/maven-archiver/pom.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-artifactId=farming-service
-groupId=com.xlxumu
-version=1.0.0
diff --git a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
deleted file mode 100644
index d211114..0000000
--- a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+++ /dev/null
@@ -1 +0,0 @@
-com/xlxumu/farm/FarmingServiceApplication.class
diff --git a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
deleted file mode 100644
index 11185a5..0000000
--- a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+++ /dev/null
@@ -1 +0,0 @@
-/Users/ainongkeji/code/vue/xlxumu/backend-java/services/farming-service/src/main/java/com/xlxumu/farm/FarmingServiceApplication.java
diff --git a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
deleted file mode 100644
index e69de29..0000000
diff --git a/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/backend-java/services/farming-service/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
deleted file mode 100644
index e69de29..0000000
diff --git a/backend-java/services/finance-service/pom.xml b/backend-java/services/finance-service/pom.xml
deleted file mode 100644
index 44c2f4c..0000000
--- a/backend-java/services/finance-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
- finance-service
- 1.0.0
- jar
-
- finance-service
- 金融服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/finance-service/src/main/java/com/xlxumu/finance/FinanceServiceApplication.java b/backend-java/services/finance-service/src/main/java/com/xlxumu/finance/FinanceServiceApplication.java
deleted file mode 100644
index 7d39ff6..0000000
--- a/backend-java/services/finance-service/src/main/java/com/xlxumu/finance/FinanceServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.finance;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class FinanceServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(FinanceServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/finance-service/src/main/resources/application.properties b/backend-java/services/finance-service/src/main/resources/application.properties
deleted file mode 100644
index 25df0d3..0000000
--- a/backend-java/services/finance-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8084
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_finance?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/government-service/pom.xml b/backend-java/services/government-service/pom.xml
deleted file mode 100644
index 16be42d..0000000
--- a/backend-java/services/government-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
-
- 1.0.0
- jar
-
-
- 政务服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/government-service/src/main/java/com/xlxumu/government/GovernmentServiceApplication.java b/backend-java/services/government-service/src/main/java/com/xlxumu/government/GovernmentServiceApplication.java
deleted file mode 100644
index 4bb079a..0000000
--- a/backend-java/services/government-service/src/main/java/com/xlxumu/government/GovernmentServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.government;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class GovernmentServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(GovernmentServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/government-service/src/main/resources/application.properties b/backend-java/services/government-service/src/main/resources/application.properties
deleted file mode 100644
index 4bbeccb..0000000
--- a/backend-java/services/government-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8086
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_government?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/mall-service/pom.xml b/backend-java/services/mall-service/pom.xml
deleted file mode 100644
index d296788..0000000
--- a/backend-java/services/mall-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
-
- 1.0.0
- jar
-
-
- 商城服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/mall-service/src/main/java/com/xlxumu/mall/MallServiceApplication.java b/backend-java/services/mall-service/src/main/java/com/xlxumu/mall/MallServiceApplication.java
deleted file mode 100644
index 6e3a6a6..0000000
--- a/backend-java/services/mall-service/src/main/java/com/xlxumu/mall/MallServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.mall;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class MallServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(MallServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/mall-service/src/main/resources/application.properties b/backend-java/services/mall-service/src/main/resources/application.properties
deleted file mode 100644
index 4a1bc8f..0000000
--- a/backend-java/services/mall-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8088
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_mall?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/trade-service/pom.xml b/backend-java/services/trade-service/pom.xml
deleted file mode 100644
index 8bfa45c..0000000
--- a/backend-java/services/trade-service/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
-
-
- trade-service
- 1.0.0
- jar
-
- trade-service
- 交易服务
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- runtime
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/trade-service/src/main/java/com/xlxumu/trade/TradeServiceApplication.java b/backend-java/services/trade-service/src/main/java/com/xlxumu/trade/TradeServiceApplication.java
deleted file mode 100644
index 8cf2e59..0000000
--- a/backend-java/services/trade-service/src/main/java/com/xlxumu/trade/TradeServiceApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.trade;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class TradeServiceApplication {
- public static void main(String[] args) {
- SpringApplication.run(TradeServiceApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/trade-service/src/main/resources/application.properties b/backend-java/services/trade-service/src/main/resources/application.properties
deleted file mode 100644
index 5c26d1f..0000000
--- a/backend-java/services/trade-service/src/main/resources/application.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-server.port=8083
-
-spring.datasource.url=jdbc:mysql://localhost:3306/xlxumu_trade?useSSL=false&serverTimezone=UTC
-spring.datasource.username=root
-spring.datasource.password=
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-
-spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
\ No newline at end of file
diff --git a/backend-java/services/user-center-service/pom.xml b/backend-java/services/user-center-service/pom.xml
deleted file mode 100644
index 2859654..0000000
--- a/backend-java/services/user-center-service/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
- 4.0.0
-
-
- com.xlxumu
- backend-java
- 1.0.0
- ../../pom.xml
-
-
- user-center-service
- 1.0.0
- jar
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
-
- mysql
- mysql-connector-java
- 8.0.33
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
\ No newline at end of file
diff --git a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/UserCenterApplication.java b/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/UserCenterApplication.java
deleted file mode 100644
index f1510ec..0000000
--- a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/UserCenterApplication.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.xlxumu.user;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class UserCenterApplication {
- public static void main(String[] args) {
- SpringApplication.run(UserCenterApplication.class, args);
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/JwtInterceptor.java b/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/JwtInterceptor.java
deleted file mode 100644
index 37562bd..0000000
--- a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/JwtInterceptor.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.xlxumu.user.config;
-
-import com.xlxumu.user.util.JwtUtil;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-import org.springframework.web.servlet.HandlerInterceptor;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-
-@Component
-public class JwtInterceptor implements HandlerInterceptor {
-
- @Autowired
- private JwtUtil jwtUtil;
-
- @Override
- public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws IOException {
- // 获取请求头中的Authorization字段
- String authorizationHeader = request.getHeader("Authorization");
-
- // 检查Authorization字段是否存在且以"Bearer "开头
- if (authorizationHeader != null && authorizationHeader.startsWith("Bearer ")) {
- // 提取JWT令牌
- String token = authorizationHeader.substring(7);
-
- try {
- // 验证令牌
- Long userId = jwtUtil.getUserIdFromToken(token);
- // 将用户ID添加到请求属性中,以便在控制器中使用
- request.setAttribute("userId", userId);
- return true;
- } catch (Exception e) {
- // 令牌无效
- response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
- response.getWriter().write("{\"code\": 401, \"message\": \"无效的访问令牌\"}");
- return false;
- }
- } else {
- // 缺少Authorization字段或格式不正确
- response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
- response.getWriter().write("{\"code\": 401, \"message\": \"缺少访问令牌\"}");
- return false;
- }
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/WebConfig.java b/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/WebConfig.java
deleted file mode 100644
index 429c8e7..0000000
--- a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/config/WebConfig.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.xlxumu.user.config;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-
-@Configuration
-public class WebConfig implements WebMvcConfigurer {
-
- @Autowired
- private JwtInterceptor jwtInterceptor;
-
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- // 注册JWT拦截器,拦截除了注册和登录之外的所有API请求
- registry.addInterceptor(jwtInterceptor)
- .addPathPatterns("/api/**")
- .excludePathPatterns("/api/users/register")
- .excludePathPatterns("/api/users/login");
- }
-}
\ No newline at end of file
diff --git a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/controller/AddressController.java b/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/controller/AddressController.java
deleted file mode 100644
index 34ff191..0000000
--- a/backend-java/services/user-center-service/src/main/java/com/xlxumu/user/controller/AddressController.java
+++ /dev/null
@@ -1,175 +0,0 @@
-package com.xlxumu.user.controller;
-
-import com.xlxumu.user.entity.Address;
-import com.xlxumu.user.service.AddressService;
-import com.xlxumu.user.util.JwtTokenUtil;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.*;
-
-import javax.servlet.http.HttpServletRequest;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * 收货地址控制器
- * 处理收货地址相关的HTTP请求
- *
- * @author xlxumu
- * @since 2024-01-15
- */
-@RestController
-@RequestMapping("/api/addresses")
-public class AddressController {
-
- @Autowired
- private AddressService addressService;
-
- @Autowired
- private JwtTokenUtil jwtTokenUtil;
-
- /**
- * 创建收货地址接口
- */
- @PostMapping
- public ResponseEntity