26 lines
446 B
Go
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",
|
|
})
|
|
}
|