17 lines
307 B
Go
17 lines
307 B
Go
|
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)
|
||
|
}
|