feat: 重构 TodoList 架构,新增动态 API 与 MAUI 内嵌 Web 服务

This commit is contained in:
ShaoHua
2026-04-04 22:11:18 +08:00
parent 81c649cb23
commit aa5407daeb
91 changed files with 3425 additions and 1978 deletions
+5 -5
View File
@@ -36,8 +36,8 @@
🚀 启动服务...
✅ TodoList.Api 服务已启动
进程 ID: 65992
访问地址: http://localhost:5057
Swagger 文档: http://localhost:5057/swagger
访问地址: http://localhost:5173
Swagger 文档: http://localhost:5173/swagger
[3/3] 启动 TodoList.Maui 应用...
🚀 启动 TodoList.Maui...
@@ -208,8 +208,8 @@ Setup package created successfully!
# 启动 API 服务和 MAUI 应用(默认)
.\start-service.ps1
# 访问 http://localhost:5057 查看服务
# 访问 http://localhost:5057/swagger 查看 API 文档
# 访问 http://localhost:5173 查看服务
# 访问 http://localhost:5173/swagger 查看 API 文档
```
### 场景 2: 只启动 API 服务
@@ -273,7 +273,7 @@ Setup package created successfully!
3. **端口占用**
- 如果端口 5057 被占用,启动会失败
- 使用 `netstat -ano | findstr :5057` 检查端口占用情况
- 使用 `netstat -ano | findstr :5173` 检查端口占用情况
4. **MAUI 应用构建**
- 如果 MAUI 应用不存在,需要先构建:`dotnet build src\TodoList.Maui\TodoList.Maui.csproj`