service/app/mix/controller/timeout.go

17 lines
307 B
Go
Raw Permalink Normal View History

2024-05-16 20:43:21 +08:00
package controller
import (
"github.com/gin-gonic/gin"
"service/bizcommon/util"
"time"
)
func Timeout(ctx *gin.Context) {
time.Sleep(time.Second * 6)
data := map[string]interface{}{
"time": time.Now().Unix(),
"time_str": util.GetTodayZeroTime().Format(time.RFC3339),
}
ReplyOk(ctx, data)
}