测试一下修复一部分问题
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user