Files
junhong_cmp_fiber/internal/handler/health.go

18 lines
316 B
Go

package handler
import (
"time"
"github.com/gofiber/fiber/v2"
"github.com/break/junhong_cmp_fiber/pkg/response"
)
// HealthCheck 健康检查处理器
func HealthCheck(c *fiber.Ctx) error {
return response.Success(c, fiber.Map{
"status": "healthy",
"timestamp": time.Now().Format(time.RFC3339),
})
}