service/app/mix/controller/helloworld.go

16 lines
281 B
Go
Raw Permalink Normal View History

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