service/app/mix/controller/helloworld.go

16 lines
281 B
Go

package controller
import (
"github.com/gin-gonic/gin"
"service/bizcommon/util"
"time"
)
func HelloWorld(ctx *gin.Context) {
data := map[string]interface{}{
"time": time.Now().Unix(),
"time_str": util.GetTodayZeroTime().Format(time.RFC3339),
}
ReplyOk(ctx, data)
}