fix struct
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package logic
|
||||
package a
|
||||
|
||||
import tushare "github.com/ShawnRong/tushare-go"
|
||||
|
||||
@@ -6,6 +6,6 @@ var (
|
||||
TushareClient *tushare.TuShare
|
||||
)
|
||||
|
||||
func NewApiClient(){
|
||||
func NewApiClient() {
|
||||
TushareClient = tushare.New("你的token")
|
||||
}
|
||||
}
|
||||
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