完成任务6(修bug)和任务7和任务八
This commit is contained in:
@@ -341,15 +341,15 @@
|
||||
- [x] 将 `gin.New()` 替换为 `echo.New()`。
|
||||
- [x] 将 `engine.Use(middleware.Recover())` 替换为 `e.Use(middleware.Recover())`。
|
||||
|
||||
- [ ] **7. 依赖管理**
|
||||
- [ ] 在 `go.mod` 中移除 `github.com/gin-gonic/gin`。
|
||||
- [ ] 在 `go.mod` 中移除 `github.com/swaggo/gin-swagger`。
|
||||
- [ ] 在 `go.mod` 中添加 `github.com/labstack/echo/v4`。
|
||||
- [ ] 在 `go.mod` 中添加 `github.com/swaggo/echo-swagger`。
|
||||
- [ ] 执行 `go mod tidy` 清理依赖项。
|
||||
- [x] **7. 依赖管理**
|
||||
- [x] 在 `go.mod` 中移除 `github.com/gin-gonic/gin`。
|
||||
- [x] 在 `go.mod` 中移除 `github.com/swaggo/gin-swagger`。
|
||||
- [x] 在 `go.mod` 中添加 `github.com/labstack/echo/v4`。
|
||||
- [x] 在 `go.mod` 中添加 `github.com/swaggo/echo-swagger`。
|
||||
- [x] 执行 `go mod tidy` 清理依赖项。
|
||||
|
||||
- [ ] **8. 验证**
|
||||
- [ ] 运行 `go build ./...` 确保项目能够成功编译。
|
||||
- [ ] 启动服务,手动测试所有 API 端点,验证功能是否与迁移前一致。
|
||||
- [ ] 访问 `/swagger/index.html`,确认 Swagger UI 是否正常工作。
|
||||
- [ ] (可选) 访问 `/debug/pprof/`,确认 pprof 路由是否正常。
|
||||
- [x] **8. 验证**
|
||||
- [x] 运行 `go build ./...` 确保项目能够成功编译。
|
||||
- [x] 启动服务,手动测试所有 API 端点,验证功能是否与迁移前一致。
|
||||
- [x] 访问 `/swagger/index.html`,确认 Swagger UI 是否正常工作。
|
||||
- [x] (可选) 访问 `/debug/pprof/`,确认 pprof 路由是否正常。
|
||||
|
||||
Reference in New Issue
Block a user