Files

26 lines
446 B
Go
Raw Permalink Normal View History

2026-05-21 15:20:12 +08:00
package handler
import (
"github.com/gin-gonic/gin"
"github.com/luxsin/app-api/internal/response"
)
type HealthHandler struct{}
func NewHealthHandler() *HealthHandler {
return &HealthHandler{}
}
2026-06-12 15:50:01 +08:00
// Check 健康检查
//
// @Summary 健康检查
// @Tags System
// @Produce json
// @Success 200 {object} object
// @Router /api/v1/health [get]
2026-05-21 15:20:12 +08:00
func (h *HealthHandler) Check(c *gin.Context) {
response.OK(c, gin.H{
"status": "up",
})
}