fix struct
This commit is contained in:
16
internal/logic/hello/ping.go
Normal file
16
internal/logic/hello/ping.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package hello
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Ping(ctx *gin.Context) {
|
||||
ctx.JSON(http.StatusOK, map[string]any{
|
||||
"PING": "PONG",
|
||||
"TIMESEQ": time.Now().Nanosecond(),
|
||||
})
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user