fix: 编译验证修复
- 重写 kb-admin-service/pom.xml(修复截断损坏) - 新建 analytics-service/pom.xml(缺失文件) - parent POM 添加 mysql-connector-java 8.0.33 版本管理 - common POM 移除 lombok optional 标记,确保子模块可继承 - AuthController 补充 @Value import - RankingService 补充 JsonUtils import 验证结果:11个模块全部编译通过(BUILD SUCCESS 12.4s)
This commit is contained in:
parent
5f44136c85
commit
5a4d33e845
@ -1,22 +1,43 @@
|
|||||||
# 项目状态
|
# 项目状态
|
||||||
|
|
||||||
## 当前阶段
|
## 当前阶段
|
||||||
Phase 1: 基础设施 + 数据库 + 公共模块 (未开始)
|
Phase 6 完成(前端 + 管理后台 + 部署配置)
|
||||||
|
|
||||||
## 已完成
|
## 已完成
|
||||||
- [x] 项目初始化(git repo、.planning目录)
|
- [x] 项目初始化(git repo、.planning目录、GSD规划文件)
|
||||||
- [x] PROJECT.md 创建
|
- [x] Phase 1: 基础设施 + 数据库 + 公共模块
|
||||||
- [x] REQUIREMENTS.md 创建
|
- 10个微服务Maven多模块结构
|
||||||
- [x] ROADMAP.md 创建
|
- common模块(Result、异常、MyBatis/Redis/RabbitMQ/跨域配置、JsonUtils/TypeHandler)
|
||||||
- [x] config.json 创建
|
- 15张MySQL 5.7表 + 40个意图分类 + 8个话术分类 + 管理员初始化数据
|
||||||
|
- docker-compose.yml基础服务
|
||||||
|
- API Gateway路由配置
|
||||||
|
- [x] Phase 2: 认证服务 + 会话存档服务
|
||||||
|
- auth-service: 企微OAuth2、JWT签发/验证、JS-SDK签名
|
||||||
|
- archive-service: JNA接口、RSA解密、存档拉取、回调接收
|
||||||
|
- [x] Phase 3: 对话服务 + 意图服务
|
||||||
|
- conversation-service: 会话管理、Redis上下文窗口(10轮)、轮次解析、MQ事件监听
|
||||||
|
- intent-service: 40意图分类、规则+LLM混合识别、学员画像(5维度)、槽位填充
|
||||||
|
- [x] Phase 4: 推荐服务 + LLM生成服务
|
||||||
|
- recommendation-service: 三层召回(规则/向量/热门)、多因子排序、MMR多样性
|
||||||
|
- generation-service: 通义千问API封装、Prompt引擎、动态话术生成
|
||||||
|
- [x] Phase 5-6: 前端 + 管理后台 + 部署配置
|
||||||
|
- sidebar H5: React18+TS+Vite+AntDesignMobile,学员画像/话术推荐/一键发送
|
||||||
|
- admin后台: React18+AntDesign,登录/数据看板/话术库CRUD
|
||||||
|
- kb-admin-service: 话术管理API
|
||||||
|
- analytics-service: 数据统计API
|
||||||
|
- 所有服务Dockerfile + nginx + 完整docker-compose编排
|
||||||
|
|
||||||
## 进行中
|
## 提交记录
|
||||||
- [ ] Phase 1 开发
|
- `31a395b` feat(01): Phase 1 - 基础设施 + 数据库 + 公共模块
|
||||||
|
- `48c1dd8` feat(02): Phase 2 - 认证服务 + 会话存档服务
|
||||||
|
- `8941f6f` feat(03): Phase 3 - 对话服务 + 意图服务
|
||||||
|
- `4583635` feat(04): Phase 4 - 推荐服务 + LLM生成服务
|
||||||
|
- `5f44136` feat(05-06): Phase 5-6 - 前端 + 管理后台 + 部署配置
|
||||||
|
|
||||||
## 待开始
|
## 后续建议
|
||||||
- Phase 2: 认证服务 + 会话存档服务
|
1. 配置通义千问API Key并测试LLM调用
|
||||||
- Phase 3: 对话服务 + 意图服务
|
2. 配置企微CorpID/Secret并测试OAuth登录
|
||||||
- Phase 4: 推荐服务 + LLM生成服务
|
3. 上传企微C SDK动态库到archive-service
|
||||||
- Phase 5: 前端侧边栏H5
|
4. 补充前端API真实调用(当前为模拟数据)
|
||||||
- Phase 6: 管理后台 + 知识库
|
5. 补充单元测试和E2E测试
|
||||||
- Phase 7: 部署配置与集成测试
|
6. 配置CI/CD流水线
|
||||||
|
|||||||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -1,3 +1,5 @@
|
|||||||
{
|
{
|
||||||
"kimi.yoloMode": true
|
"kimi.yoloMode": true,
|
||||||
|
"java.compile.nullAnalysis.mode": "automatic",
|
||||||
|
"java.configuration.updateBuildConfiguration": "interactive"
|
||||||
}
|
}
|
||||||
33
backend/analytics-service/pom.xml
Normal file
33
backend/analytics-service/pom.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?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.artedu</groupId>
|
||||||
|
<artifactId>ai-assistant-parent</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>analytics-service</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>数据分析服务</name>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.artedu</groupId>
|
||||||
|
<artifactId>common</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
||||||
Binary file not shown.
35
backend/analytics-service/target/classes/application.yml
Normal file
35
backend/analytics-service/target/classes/application.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
server:
|
||||||
|
port: 8088
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: analytics-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
rabbitmq:
|
||||||
|
host: ${RABBITMQ_HOST:localhost}
|
||||||
|
port: ${RABBITMQ_PORT:5672}
|
||||||
|
username: ${RABBITMQ_USERNAME:admin}
|
||||||
|
password: ${RABBITMQ_PASSWORD:admin}
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=analytics-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
com\artedu\analytics\AnalyticsServiceApplication.class
|
||||||
|
com\artedu\analytics\controller\AnalyticsController.class
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
D:\www\agent_9art\backend\analytics-service\src\main\java\com\artedu\analytics\AnalyticsServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\analytics-service\src\main\java\com\artedu\analytics\controller\AnalyticsController.java
|
||||||
Binary file not shown.
35
backend/archive-service/target/classes/application.yml
Normal file
35
backend/archive-service/target/classes/application.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
server:
|
||||||
|
port: 8082
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: archive-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
rabbitmq:
|
||||||
|
host: ${RABBITMQ_HOST:localhost}
|
||||||
|
port: ${RABBITMQ_PORT:5672}
|
||||||
|
username: ${RABBITMQ_USERNAME:admin}
|
||||||
|
password: ${RABBITMQ_PASSWORD:admin}
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=archive-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
com\artedu\archive\service\ArchivePullService.class
|
||||||
|
com\artedu\archive\controller\ArchiveCallbackController.class
|
||||||
|
com\artedu\archive\sdk\WeWorkFinanceSdk.class
|
||||||
|
com\artedu\archive\ArchiveServiceApplication.class
|
||||||
|
com\artedu\archive\sdk\WeWorkFinanceSdk$Slice_t.class
|
||||||
|
com\artedu\archive\entity\ArchiveMessage.class
|
||||||
|
com\artedu\archive\mapper\ArchiveMessageMapper.class
|
||||||
|
com\artedu\archive\util\RsaDecryptUtil.class
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\ArchiveServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\controller\ArchiveCallbackController.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\entity\ArchiveMessage.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\mapper\ArchiveMessageMapper.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\sdk\WeWorkFinanceSdk.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\service\ArchivePullService.java
|
||||||
|
D:\www\agent_9art\backend\archive-service\src\main\java\com\artedu\archive\util\RsaDecryptUtil.java
|
||||||
@ -12,15 +12,41 @@
|
|||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>认证授权服务</name>
|
<name>认证授权服务</name>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency><groupId>com.artedu</groupId><artifactId>common</artifactId><version>${project.version}</version></dependency>
|
<dependency>
|
||||||
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
|
<groupId>com.artedu</groupId>
|
||||||
<dependency><groupId>io.jsonwebtoken</groupId><artifactId>jjwt-api</artifactId></dependency>
|
<artifactId>common</artifactId>
|
||||||
<dependency><groupId>io.jsonwebtoken</groupId><artifactId>jjwt-impl</artifactId><scope>runtime</scope></dependency>
|
<version>${project.version}</version>
|
||||||
<dependency><groupId>io.jsonwebtoken</groupId><artifactId>jjwt-jackson</artifactId><scope>runtime</scope></dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.jsonwebtoken</groupId>
|
||||||
|
<artifactId>jjwt-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.jsonwebtoken</groupId>
|
||||||
|
<artifactId>jjwt-impl</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.jsonwebtoken</groupId>
|
||||||
|
<artifactId>jjwt-jackson</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin>
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import com.artedu.auth.service.WeComOAuthService;
|
|||||||
import com.artedu.common.result.Result;
|
import com.artedu.common.result.Result;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|||||||
BIN
backend/auth-service/target/auth-service-1.0.0-SNAPSHOT.jar
Normal file
BIN
backend/auth-service/target/auth-service-1.0.0-SNAPSHOT.jar
Normal file
Binary file not shown.
39
backend/auth-service/target/classes/application.yml
Normal file
39
backend/auth-service/target/classes/application.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
server:
|
||||||
|
port: 8081
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: auth-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
|
||||||
|
wecom:
|
||||||
|
corp-id: ${WECOM_CORP_ID:}
|
||||||
|
agent-id: ${WECOM_AGENT_ID:}
|
||||||
|
secret: ${WECOM_SECRET:}
|
||||||
|
|
||||||
|
jwt:
|
||||||
|
secret: ${JWT_SECRET:your-256-bit-secret-key-here-at-least-32-characters}
|
||||||
|
expiration: 86400
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=auth-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
com\artedu\auth\AuthServiceApplication.class
|
||||||
|
com\artedu\auth\mapper\StaffMapper.class
|
||||||
|
com\artedu\auth\entity\Staff.class
|
||||||
|
com\artedu\auth\service\JwtService.class
|
||||||
|
com\artedu\auth\controller\AuthController.class
|
||||||
|
com\artedu\auth\service\WeComOAuthService.class
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\AuthServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\controller\AuthController.java
|
||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\entity\Staff.java
|
||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\mapper\StaffMapper.java
|
||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\service\JwtService.java
|
||||||
|
D:\www\agent_9art\backend\auth-service\src\main\java\com\artedu\auth\service\WeComOAuthService.java
|
||||||
@ -44,7 +44,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
backend/common/target/common-1.0.0-SNAPSHOT.jar
Normal file
BIN
backend/common/target/common-1.0.0-SNAPSHOT.jar
Normal file
Binary file not shown.
3
backend/common/target/maven-archiver/pom.properties
Normal file
3
backend/common/target/maven-archiver/pom.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=common
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
com\artedu\common\handler\AutoFillHandler.class
|
||||||
|
com\artedu\common\config\MyBatisPlusConfig.class
|
||||||
|
com\artedu\common\result\Result.class
|
||||||
|
com\artedu\common\config\RabbitConfig.class
|
||||||
|
com\artedu\common\entity\BaseEntity.class
|
||||||
|
com\artedu\common\exception\BusinessException.class
|
||||||
|
com\artedu\common\config\RedisConfig.class
|
||||||
|
com\artedu\common\util\JsonUtils.class
|
||||||
|
com\artedu\common\config\CorsConfig.class
|
||||||
|
com\artedu\common\util\JsonUtils$1.class
|
||||||
|
com\artedu\common\mybatis\JsonTypeHandler.class
|
||||||
|
com\artedu\common\exception\GlobalExceptionHandler.class
|
||||||
|
com\artedu\common\result\PageResult.class
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\config\CorsConfig.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\config\MyBatisPlusConfig.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\config\RabbitConfig.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\config\RedisConfig.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\entity\BaseEntity.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\exception\BusinessException.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\exception\GlobalExceptionHandler.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\handler\AutoFillHandler.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\mybatis\JsonTypeHandler.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\result\PageResult.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\result\Result.java
|
||||||
|
D:\www\agent_9art\backend\common\src\main\java\com\artedu\common\util\JsonUtils.java
|
||||||
35
backend/conversation-service/target/classes/application.yml
Normal file
35
backend/conversation-service/target/classes/application.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
server:
|
||||||
|
port: 8083
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: conversation-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
rabbitmq:
|
||||||
|
host: ${RABBITMQ_HOST:localhost}
|
||||||
|
port: ${RABBITMQ_PORT:5672}
|
||||||
|
username: ${RABBITMQ_USERNAME:admin}
|
||||||
|
password: ${RABBITMQ_PASSWORD:admin}
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=conversation-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
com\artedu\conversation\mapper\ConversationMapper.class
|
||||||
|
com\artedu\conversation\ConversationServiceApplication.class
|
||||||
|
com\artedu\conversation\mapper\ConversationTurnMapper.class
|
||||||
|
com\artedu\conversation\entity\Conversation.class
|
||||||
|
com\artedu\conversation\entity\ConversationTurn.class
|
||||||
|
com\artedu\conversation\service\ConversationManager$ContextMessage.class
|
||||||
|
com\artedu\conversation\service\ConversationManager.class
|
||||||
|
com\artedu\conversation\service\ConversationManager$ArchiveMessageEvent.class
|
||||||
|
com\artedu\conversation\controller\ConversationController.class
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\controller\ConversationController.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\ConversationServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\entity\Conversation.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\entity\ConversationTurn.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\mapper\ConversationMapper.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\mapper\ConversationTurnMapper.java
|
||||||
|
D:\www\agent_9art\backend\conversation-service\src\main\java\com\artedu\conversation\service\ConversationManager.java
|
||||||
48
backend/gateway/target/classes/application.yml
Normal file
48
backend/gateway/target/classes/application.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
server:
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: gateway
|
||||||
|
cloud:
|
||||||
|
gateway:
|
||||||
|
routes:
|
||||||
|
- id: auth-service
|
||||||
|
uri: http://localhost:8081
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/auth/**
|
||||||
|
- id: archive-service
|
||||||
|
uri: http://localhost:8082
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/archive/**
|
||||||
|
- id: conversation-service
|
||||||
|
uri: http://localhost:8083
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/conversations/**
|
||||||
|
- id: intent-service
|
||||||
|
uri: http://localhost:8084
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/intent/**
|
||||||
|
- id: recommend-service
|
||||||
|
uri: http://localhost:8085
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/recommend/**
|
||||||
|
- id: generation-service
|
||||||
|
uri: http://localhost:8086
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/generation/**
|
||||||
|
- id: kb-admin-service
|
||||||
|
uri: http://localhost:8087
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/admin/**
|
||||||
|
- id: analytics-service
|
||||||
|
uri: http://localhost:8088
|
||||||
|
predicates:
|
||||||
|
- Path=/api/v1/analytics/**
|
||||||
|
globalcors:
|
||||||
|
cors-configurations:
|
||||||
|
'[/**]':
|
||||||
|
allowedOrigins: "*"
|
||||||
|
allowedMethods: "*"
|
||||||
|
allowedHeaders: "*"
|
||||||
|
allowCredentials: true
|
||||||
Binary file not shown.
BIN
backend/gateway/target/gateway-1.0.0-SNAPSHOT.jar
Normal file
BIN
backend/gateway/target/gateway-1.0.0-SNAPSHOT.jar
Normal file
Binary file not shown.
3
backend/gateway/target/maven-archiver/pom.properties
Normal file
3
backend/gateway/target/maven-archiver/pom.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=gateway
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1 @@
|
|||||||
|
com\artedu\gateway\GatewayApplication.class
|
||||||
@ -0,0 +1 @@
|
|||||||
|
D:\www\agent_9art\backend\gateway\src\main\java\com\artedu\gateway\GatewayApplication.java
|
||||||
35
backend/generation-service/target/classes/application.yml
Normal file
35
backend/generation-service/target/classes/application.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
server:
|
||||||
|
port: 8086
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: generation-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
rabbitmq:
|
||||||
|
host: ${RABBITMQ_HOST:localhost}
|
||||||
|
port: ${RABBITMQ_PORT:5672}
|
||||||
|
username: ${RABBITMQ_USERNAME:admin}
|
||||||
|
password: ${RABBITMQ_PASSWORD:admin}
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=generation-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
com\artedu\generation\controller\GenerationController.class
|
||||||
|
com\artedu\generation\GenerationServiceApplication.class
|
||||||
|
com\artedu\generation\service\QianwenClient.class
|
||||||
|
com\artedu\generation\service\PromptEngine.class
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
D:\www\agent_9art\backend\generation-service\src\main\java\com\artedu\generation\controller\GenerationController.java
|
||||||
|
D:\www\agent_9art\backend\generation-service\src\main\java\com\artedu\generation\GenerationServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\generation-service\src\main\java\com\artedu\generation\service\PromptEngine.java
|
||||||
|
D:\www\agent_9art\backend\generation-service\src\main\java\com\artedu\generation\service\QianwenClient.java
|
||||||
35
backend/intent-service/target/classes/application.yml
Normal file
35
backend/intent-service/target/classes/application.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
server:
|
||||||
|
port: 8084
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: intent-service
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:ai_assistant}?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: ${MYSQL_USERNAME:root}
|
||||||
|
password: ${MYSQL_PASSWORD:root}
|
||||||
|
redis:
|
||||||
|
host: ${REDIS_HOST:localhost}
|
||||||
|
port: ${REDIS_PORT:6379}
|
||||||
|
password: ${REDIS_PASSWORD:}
|
||||||
|
database: 0
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
max-active: 8
|
||||||
|
max-idle: 8
|
||||||
|
min-idle: 0
|
||||||
|
rabbitmq:
|
||||||
|
host: ${RABBITMQ_HOST:localhost}
|
||||||
|
port: ${RABBITMQ_PORT:5672}
|
||||||
|
username: ${RABBITMQ_USERNAME:admin}
|
||||||
|
password: ${RABBITMQ_PASSWORD:admin}
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
backend/intent-service/target/intent-service-1.0.0-SNAPSHOT.jar
Normal file
BIN
backend/intent-service/target/intent-service-1.0.0-SNAPSHOT.jar
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
artifactId=intent-service
|
||||||
|
groupId=com.artedu
|
||||||
|
version=1.0.0-SNAPSHOT
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
com\artedu\intent\IntentServiceApplication.class
|
||||||
|
com\artedu\intent\dto\IntentResult$IntentInfo.class
|
||||||
|
com\artedu\intent\service\LLMIntentClient.class
|
||||||
|
com\artedu\intent\mapper\IntentCategoryMapper.class
|
||||||
|
com\artedu\intent\dto\IntentResult.class
|
||||||
|
com\artedu\intent\entity\CustomerProfile.class
|
||||||
|
com\artedu\intent\mapper\CustomerProfileMapper.class
|
||||||
|
com\artedu\intent\mapper\IntentRecognitionMapper.class
|
||||||
|
com\artedu\intent\controller\IntentController.class
|
||||||
|
com\artedu\intent\entity\IntentRecognition.class
|
||||||
|
com\artedu\intent\entity\IntentCategory.class
|
||||||
|
com\artedu\intent\service\IntentRecognitionService.class
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\controller\IntentController.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\dto\IntentResult.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\entity\CustomerProfile.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\entity\IntentCategory.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\entity\IntentRecognition.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\IntentServiceApplication.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\mapper\CustomerProfileMapper.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\mapper\IntentCategoryMapper.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\mapper\IntentRecognitionMapper.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\service\IntentRecognitionService.java
|
||||||
|
D:\www\agent_9art\backend\intent-service\src\main\java\com\artedu\intent\service\LLMIntentClient.java
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user