Files
argus/rear/internal/handler/basic.go
T

33 lines
602 B
Go

package handler
import (
"github.com/gin-gonic/gin"
"net/http"
"rear/internal/model"
"time"
)
// HealthCheck 健康检查
func HealthCheck(c *gin.Context) {
c.JSON(http.StatusOK, model.Response{
Code: http.StatusOK,
Message: "OK",
Data: map[string]interface{}{
"timestamp": time.Now().Unix(),
"version": "1.0.0",
},
})
}
// BasicResponse 健康检查
func BasicResponse(c *gin.Context) {
c.JSON(http.StatusOK, model.Response{
Code: http.StatusOK,
Message: "OK",
Data: map[string]interface{}{
"timestamp": time.Now().Unix(),
"version": "1.0.0",
},
})
}