fix struct

This commit is contained in:
2026-01-13 13:23:54 +08:00
parent 205b37a676
commit 49e70554f1
10 changed files with 130 additions and 141 deletions

View File

@@ -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")
}
}

View 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
}