Files
tiku-backend.net/docs/migration/phase-1-repository-baseline.md

36 lines
966 B
Markdown

# 第一阶段:仓库转正基线
状态:已完成。
## 目标
- 确认 ASP.NET Core + EF Core + PostgreSQL 仓库为唯一目标后端。
- 建立旧 NestJS OpenAPI 与当前 .NET OpenAPI 的机械比较基线。
- 接入自建 Git 上游。
## 结果
- 旧 NestJS 仅作为行为、接口和迁移参考。
- 新功能在 .NET 仓库开发。
- 旧 URL 不要求逐字兼容。
- API 差距记录在 `docs/migration/contracts/operation-inventory.csv`
基线快照:
| 项 | 数量 |
| --- | ---: |
| 旧 NestJS OpenAPI 操作 | 342 |
| 当前 .NET OpenAPI 操作 | 237 |
| 仅旧 NestJS 存在 | 177 |
| 仅当前 .NET 存在 | 72 |
## 验收
```bash
dotnet build TIKU-BACKEND.slnx --no-restore
dotnet test Tiku.UnitTests/Tiku.UnitTests.csproj --no-restore
dotnet test Tiku.IntegrationTests/Tiku.IntegrationTests.csproj --no-restore
dotnet ef migrations script --project Tiku.Infrastructure --startup-project Tiku.DbMigrator
git diff --check
```