docs: 批量更新历史文档中的 backend-single 引用为 server
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
|
||||
| 文件 | 职责 | 操作 |
|
||||
|------|------|------|
|
||||
| `backend-single/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java` | DTO:新增 endpointId 字段,更新 RESERVED_KEYS | 修改 |
|
||||
| `backend-single/src/main/java/com/emotion/service/AiRuntimeService.java` | Service 接口:新增 testEndpoint + invokeEndpointStream | 修改 |
|
||||
| `backend-single/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java` | Service 实现:新增两个方法的完整实现 | 修改 |
|
||||
| `backend-single/src/main/java/com/emotion/controller/AiRoutingController.java` | Controller:新增 /endpoint/test 和 /endpoint/stream | 修改 |
|
||||
| `server/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java` | DTO:新增 endpointId 字段,更新 RESERVED_KEYS | 修改 |
|
||||
| `server/src/main/java/com/emotion/service/AiRuntimeService.java` | Service 接口:新增 testEndpoint + invokeEndpointStream | 修改 |
|
||||
| `server/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java` | Service 实现:新增两个方法的完整实现 | 修改 |
|
||||
| `server/src/main/java/com/emotion/controller/AiRoutingController.java` | Controller:新增 /endpoint/test 和 /endpoint/stream | 修改 |
|
||||
| `web-admin/src/types/aiconfig.ts` | TypeScript 类型:新增 AiEndpointRuntimeRequest | 修改 |
|
||||
| `web-admin/src/api/aiconfig.ts` | API 层:新增 testEndpointRuntime、streamEndpointRuntime、提取 fetchSseStream | 修改 |
|
||||
| `web-admin/src/views/aiconfig/AiRoutingList.vue` | Vue 组件:增加行内测试按钮 + endpoint 测试对话框 | 修改 |
|
||||
@@ -27,7 +27,7 @@
|
||||
### Task 1: DTO 增强 — AiRuntimeRequest 新增 endpointId
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend-single/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java`
|
||||
- Modify: `server/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java`
|
||||
|
||||
- [ ] **Step 1: 新增 endpointId 字段和 RESERVED_KEYS**
|
||||
|
||||
@@ -82,13 +82,13 @@ public static AiRuntimeRequest fromPayload(JSONObject payload) {
|
||||
|
||||
- [ ] **Step 3: 编译验证**
|
||||
|
||||
Run: `cd backend-single && mvn clean compile -pl :backend-single -am -DskipTests`
|
||||
Run: `cd server && mvn clean compile -pl :server -am -DskipTests`
|
||||
Expected: BUILD SUCCESS(endpointId 字段新增不破坏任何编译,因为这是新增字段)
|
||||
|
||||
- [ ] **Step 4: Commit**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java
|
||||
git add server/src/main/java/com/emotion/dto/request/ai/AiRuntimeRequest.java
|
||||
git commit -m "feat: AiRuntimeRequest DTO 新增 endpointId 字段
|
||||
|
||||
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
@@ -99,7 +99,7 @@ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
### Task 2: Service 接口层 — 新增 testEndpoint + invokeEndpointStream
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend-single/src/main/java/com/emotion/service/AiRuntimeService.java`
|
||||
- Modify: `server/src/main/java/com/emotion/service/AiRuntimeService.java`
|
||||
|
||||
- [ ] **Step 1: 新增两个接口方法**
|
||||
|
||||
@@ -128,13 +128,13 @@ public interface AiRuntimeService {
|
||||
|
||||
- [ ] **Step 2: 编译验证**
|
||||
|
||||
Run: `cd backend-single && mvn clean compile -pl :backend-single -am -DskipTests`
|
||||
Run: `cd server && mvn clean compile -pl :server -am -DskipTests`
|
||||
Expected: BUILD SUCCESS(接口新增方法,但实现类尚未修改,此时不会编译失败 — 因为 ServiceImpl 编译是单独的任务)
|
||||
|
||||
- [ ] **Step 3: Commit**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/service/AiRuntimeService.java
|
||||
git add server/src/main/java/com/emotion/service/AiRuntimeService.java
|
||||
git commit -m "feat: AiRuntimeService 接口新增 endpoint 测试方法
|
||||
|
||||
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
@@ -145,7 +145,7 @@ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
### Task 3: Service 实现层 — testEndpoint + invokeEndpointStream 实现
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend-single/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java`
|
||||
- Modify: `server/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java`
|
||||
|
||||
- [ ] **Step 1: 新增 testEndpoint 方法**
|
||||
|
||||
@@ -271,13 +271,13 @@ public void invokeEndpointStream(String endpointId, Map<String, Object> inputs,
|
||||
|
||||
- [ ] **Step 3: 编译验证**
|
||||
|
||||
Run: `cd backend-single && mvn clean compile -pl :backend-single -am -DskipTests`
|
||||
Run: `cd server && mvn clean compile -pl :server -am -DskipTests`
|
||||
Expected: BUILD SUCCESS
|
||||
|
||||
- [ ] **Step 4: Commit**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java
|
||||
git add server/src/main/java/com/emotion/service/impl/AiRuntimeServiceImpl.java
|
||||
git commit -m "feat: AiRuntimeServiceImpl 实现 endpoint 直接测试方法
|
||||
|
||||
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
@@ -288,7 +288,7 @@ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
### Task 4: Controller 层 — 新增 /endpoint/test 和 /endpoint/stream
|
||||
|
||||
**Files:**
|
||||
- Modify: `backend-single/src/main/java/com/emotion/controller/AiRoutingController.java`
|
||||
- Modify: `server/src/main/java/com/emotion/controller/AiRoutingController.java`
|
||||
|
||||
- [ ] **Step 1: 在 runtimeStream 方法之后新增两个 endpoint 方法**
|
||||
|
||||
@@ -323,13 +323,13 @@ public SseEmitter endpointStream(@RequestBody JSONObject payload) {
|
||||
|
||||
- [ ] **Step 2: 编译并验证完整后端**
|
||||
|
||||
Run: `cd backend-single && mvn clean compile -pl :backend-single -am -DskipTests`
|
||||
Run: `cd server && mvn clean compile -pl :server -am -DskipTests`
|
||||
Expected: BUILD SUCCESS
|
||||
|
||||
- [ ] **Step 3: Commit**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/controller/AiRoutingController.java
|
||||
git add server/src/main/java/com/emotion/controller/AiRoutingController.java
|
||||
git commit -m "feat: AiRoutingController 新增 /endpoint/test 和 /endpoint/stream 接口
|
||||
|
||||
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>"
|
||||
|
||||
Reference in New Issue
Block a user