deving
This commit is contained in:
11
internal/logic/a.go
Normal file
11
internal/logic/a.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package logic
|
||||
|
||||
import tushare "github.com/ShawnRong/tushare-go"
|
||||
|
||||
var (
|
||||
TushareClient *tushare.TuShare
|
||||
)
|
||||
|
||||
func NewApiClient(){
|
||||
TushareClient = tushare.New("你的token")
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Hook(ctx *gin.Context) {
|
||||
fmt.Println("BODY:")
|
||||
reqBody, _ := io.ReadAll(ctx.Request.Body)
|
||||
fmt.Println(string(reqBody))
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user