16 lines
282 B
Go
16 lines
282 B
Go
|
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)
|
||
|
}
|