类名修改适配
All checks were successful
类变更检测 / class-change-check (push) Successful in 16s

This commit is contained in:
2026-06-08 15:21:06 +08:00
parent 17aa214952
commit 6d8cc0eddc
4 changed files with 19 additions and 6 deletions

View File

@@ -56,6 +56,15 @@
> <font color="warning">[类名变更]</font> <font color="comment">ApplyAttendanceChangeDto</font> → <font color="info">ApplyAttendanceChangeNewDto</font>
> <font color="comment">字段无变化</font>
## 【影响范围】
### 影响 request 接口
> <font color="info">POST</font> `/apply/clockIn`
> <font color="info">PUT</font> `/apply/clockIn/{id}`
### 类转换影响
> <font color="comment">未开启检测</font>
```
---

View File

@@ -51,4 +51,12 @@
> <font color="warning">[类名变更]</font> <font color="comment">AttendanceDetailVo</font> → <font color="info">AttendanceDetailNewVo</font>
> <font color="comment">字段无变化</font>
## 【影响范围】
### 影响 response 接口
> <font color="info">GET</font> `/api/attendance/detail`
### 类转换影响
> <font color="comment">未开启检测</font>
```

View File

@@ -22,14 +22,10 @@ public class ImpactAnalyzer {
private final ConversionParser conversionParser = new ConversionParser();
/**
* 填充 report 的影响列表;RENAME_ONLY 跳过Entity/Model 不匹配接口。
* 填充 report 的影响列表;新旧类名均参与匹配Entity/Model 不匹配接口。
*/
public void analyze(ClassChangeReport report, Map<String, ApiEndpoint> endpointIndex,
AppConfig config, Path repoRoot, String newSource, String oldSource) throws IOException {
if (report.isRenameOnly()) {
return;
}
Set<String> matchNames = namesForMatching(report);
if (report.getClassType() != ClassType.ENTITY && report.getClassType() != ClassType.MODEL) {