docs: 批量更新历史文档中的 backend-single 引用为 server
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
### Task 1: 数据库实体 + Mapper 层
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/entity/ApiEndpoint.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/entity/ApiParam.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/mapper/ApiEndpointMapper.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/mapper/ApiParamMapper.java`
|
||||
- Create: `server/src/main/java/com/emotion/entity/ApiEndpoint.java`
|
||||
- Create: `server/src/main/java/com/emotion/entity/ApiParam.java`
|
||||
- Create: `server/src/main/java/com/emotion/mapper/ApiEndpointMapper.java`
|
||||
- Create: `server/src/main/java/com/emotion/mapper/ApiParamMapper.java`
|
||||
|
||||
- [ ] **Step 1: 创建 ApiEndpoint 实体**
|
||||
|
||||
@@ -153,10 +153,10 @@ public interface ApiParamMapper extends BaseMapper<ApiParam> {
|
||||
- [ ] **Step 4: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/entity/ApiEndpoint.java
|
||||
git add backend-single/src/main/java/com/emotion/entity/ApiParam.java
|
||||
git add backend-single/src/main/java/com/emotion/mapper/ApiEndpointMapper.java
|
||||
git add backend-single/src/main/java/com/emotion/mapper/ApiParamMapper.java
|
||||
git add server/src/main/java/com/emotion/entity/ApiEndpoint.java
|
||||
git add server/src/main/java/com/emotion/entity/ApiParam.java
|
||||
git add server/src/main/java/com/emotion/mapper/ApiEndpointMapper.java
|
||||
git add server/src/main/java/com/emotion/mapper/ApiParamMapper.java
|
||||
git commit -m "feat: 添加接口端点实体和Mapper"
|
||||
```
|
||||
|
||||
@@ -165,11 +165,11 @@ git commit -m "feat: 添加接口端点实体和Mapper"
|
||||
### Task 2: DTO 层 — Request/Response
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/request/ApiEndpointListRequest.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/response/ApiEndpointItemResponse.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/response/ApiEndpointDetailResponse.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/response/ApiParamItemResponse.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/request/ApiTestProxyRequest.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/request/ApiEndpointListRequest.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/response/ApiEndpointItemResponse.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/response/ApiEndpointDetailResponse.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/response/ApiParamItemResponse.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/request/ApiTestProxyRequest.java`
|
||||
|
||||
- [ ] **Step 1: 创建 ApiEndpointListRequest(分页查询入参)**
|
||||
|
||||
@@ -309,11 +309,11 @@ public class ApiTestProxyRequest {
|
||||
- [ ] **Step 6: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/dto/request/ApiEndpointListRequest.java
|
||||
git add backend-single/src/main/java/com/emotion/dto/response/ApiEndpointItemResponse.java
|
||||
git add backend-single/src/main/java/com/emotion/dto/response/ApiEndpointDetailResponse.java
|
||||
git add backend-single/src/main/java/com/emotion/dto/response/ApiParamItemResponse.java
|
||||
git add backend-single/src/main/java/com/emotion/dto/request/ApiTestProxyRequest.java
|
||||
git add server/src/main/java/com/emotion/dto/request/ApiEndpointListRequest.java
|
||||
git add server/src/main/java/com/emotion/dto/response/ApiEndpointItemResponse.java
|
||||
git add server/src/main/java/com/emotion/dto/response/ApiEndpointDetailResponse.java
|
||||
git add server/src/main/java/com/emotion/dto/response/ApiParamItemResponse.java
|
||||
git add server/src/main/java/com/emotion/dto/request/ApiTestProxyRequest.java
|
||||
git commit -m "feat: 添加接口管理DTO"
|
||||
```
|
||||
|
||||
@@ -322,8 +322,8 @@ git commit -m "feat: 添加接口管理DTO"
|
||||
### Task 3: Service 层 — 核心解析与同步逻辑
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/service/ApiEndpointService.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/service/impl/ApiEndpointServiceImpl.java`
|
||||
- Create: `server/src/main/java/com/emotion/service/ApiEndpointService.java`
|
||||
- Create: `server/src/main/java/com/emotion/service/impl/ApiEndpointServiceImpl.java`
|
||||
|
||||
- [ ] **Step 1: 创建 Service 接口**
|
||||
|
||||
@@ -676,8 +676,8 @@ public class ApiEndpointServiceImpl implements ApiEndpointService {
|
||||
- [ ] **Step 3: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/service/ApiEndpointService.java
|
||||
git add backend-single/src/main/java/com/emotion/service/impl/ApiEndpointServiceImpl.java
|
||||
git add server/src/main/java/com/emotion/service/ApiEndpointService.java
|
||||
git add server/src/main/java/com/emotion/service/impl/ApiEndpointServiceImpl.java
|
||||
git commit -m "feat: 添加接口端点Service层"
|
||||
```
|
||||
|
||||
@@ -686,7 +686,7 @@ git commit -m "feat: 添加接口端点Service层"
|
||||
### Task 4: ApplicationRunner — 启动自动同步
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/service/ApiEndpointSyncRunner.java`
|
||||
- Create: `server/src/main/java/com/emotion/service/ApiEndpointSyncRunner.java`
|
||||
|
||||
- [ ] **Step 1: 创建 SyncRunner**
|
||||
|
||||
@@ -729,7 +729,7 @@ public class ApiEndpointSyncRunner implements ApplicationRunner {
|
||||
- [ ] **Step 2: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/service/ApiEndpointSyncRunner.java
|
||||
git add server/src/main/java/com/emotion/service/ApiEndpointSyncRunner.java
|
||||
git commit -m "feat: 添加启动自动同步接口数据"
|
||||
```
|
||||
|
||||
@@ -738,7 +738,7 @@ git commit -m "feat: 添加启动自动同步接口数据"
|
||||
### Task 5: Controller 层 — 分页查询 + 详情 + 手动同步
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/controller/ApiEndpointController.java`
|
||||
- Create: `server/src/main/java/com/emotion/controller/ApiEndpointController.java`
|
||||
|
||||
- [ ] **Step 1: 创建 Controller**
|
||||
|
||||
@@ -815,7 +815,7 @@ public class ApiEndpointController {
|
||||
- [ ] **Step 2: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/controller/ApiEndpointController.java
|
||||
git add server/src/main/java/com/emotion/controller/ApiEndpointController.java
|
||||
git commit -m "feat: 添加接口管理Controller"
|
||||
```
|
||||
|
||||
@@ -824,8 +824,8 @@ git commit -m "feat: 添加接口管理Controller"
|
||||
### Task 6: Controller 层 — 代理测试接口
|
||||
|
||||
**Files:**
|
||||
- Create: `backend-single/src/main/java/com/emotion/controller/ApiTestProxyController.java`
|
||||
- Create: `backend-single/src/main/java/com/emotion/dto/response/ApiTestProxyResponse.java`
|
||||
- Create: `server/src/main/java/com/emotion/controller/ApiTestProxyController.java`
|
||||
- Create: `server/src/main/java/com/emotion/dto/response/ApiTestProxyResponse.java`
|
||||
|
||||
- [ ] **Step 1: 创建 ApiTestProxyResponse**
|
||||
|
||||
@@ -990,8 +990,8 @@ public class ApiTestProxyController {
|
||||
- [ ] **Step 3: 提交**
|
||||
|
||||
```bash
|
||||
git add backend-single/src/main/java/com/emotion/controller/ApiTestProxyController.java
|
||||
git add backend-single/src/main/java/com/emotion/dto/response/ApiTestProxyResponse.java
|
||||
git add server/src/main/java/com/emotion/controller/ApiTestProxyController.java
|
||||
git add server/src/main/java/com/emotion/dto/response/ApiTestProxyResponse.java
|
||||
git commit -m "feat: 添加接口代理测试Controller"
|
||||
```
|
||||
|
||||
@@ -1002,8 +1002,8 @@ git commit -m "feat: 添加接口代理测试Controller"
|
||||
- [ ] **Step 1: 编译验证**
|
||||
|
||||
```bash
|
||||
cd backend-single
|
||||
mvn clean install -pl :backend-single -am -DskipTests
|
||||
cd server
|
||||
mvn clean install -pl :server -am -DskipTests
|
||||
```
|
||||
|
||||
预期:BUILD SUCCESS
|
||||
|
||||
Reference in New Issue
Block a user