init
This commit is contained in:
15
internal/logic/restful/ping.go
Normal file
15
internal/logic/restful/ping.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package restful
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Ping(ctx *gin.Context) {
|
||||
ctx.JSON(200, gin.H{
|
||||
"message": "pong",
|
||||
"timeseq": time.Now().UnixNano() / 1000,
|
||||
})
|
||||
return
|
||||
}
|
||||
4
internal/logic/strategy/boot.go
Normal file
4
internal/logic/strategy/boot.go
Normal file
@@ -0,0 +1,4 @@
|
||||
package strategy
|
||||
|
||||
func Boot() {
|
||||
}
|
||||
Reference in New Issue
Block a user