service/app/mix/controller/healthcheck.go

16 lines
282 B
Go
Raw Normal View History

2024-05-14 09:48:34 +08:00
package controller
import (
"github.com/gin-gonic/gin"
"service/bizcommon/util"
"time"
)
func Healthcheck(ctx *gin.Context) {
data := map[string]interface{}{
"time": time.Now().Unix(),
"time_str": util.GetTodayZeroTime().Format(time.RFC3339),
}
ReplyOk(ctx, data)
}