Files
2026-06-12 15:50:01 +08:00

26 lines
446 B
Go

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