测试一下修复一部分问题

This commit is contained in:
2025-11-11 18:15:39 +08:00
parent 2b1754728f
commit ea0c6a8b16
7 changed files with 234 additions and 34 deletions

View File

@@ -4,12 +4,15 @@ import (
"time"
"github.com/gofiber/fiber/v2"
"go.uber.org/zap"
"github.com/break/junhong_cmp_fiber/pkg/logger"
"github.com/break/junhong_cmp_fiber/pkg/response"
)
// HealthCheck 健康检查处理器
func HealthCheck(c *fiber.Ctx) error {
logger.GetAppLogger().Info("我还活着!!!!", zap.String("time", time.Now().Format(time.RFC3339)))
return response.Success(c, fiber.Map{
"status": "healthy",
"timestamp": time.Now().Format(time.RFC3339),