fix(phase2a): handleError 增强 + 代码格式化 + 测试报告归档

- auth/contact Controller handleError 增加 fallbackMsg 可变参数,未知错误可返回更有语义的降级提示
- import 排序、变量对齐等 gofmt 格式规范化
- 新增管理端测试报告和路由验证报告

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-03-03 09:51:43 +08:00
parent 2c59500e27
commit c8ae70ef97
9 changed files with 616 additions and 59 deletions

View File

@@ -40,7 +40,7 @@ func (ctrl *AdminAuthController) AdminLogin(c *gin.Context) {
resp, err := ctrl.authService.AdminLogin(ctx, &req, c.ClientIP())
if err != nil {
handleAuthError(c, err)
handleAuthError(c, err, "管理员登录失败")
return
}