ADD dir structure

master
dugulingping 2023-12-13 17:42:38 +08:00
parent cd39a5e803
commit e1950caa3d
1 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"net/http" "net/http"
) )
@ -20,9 +21,17 @@ func main() {
// 处理 webhook 数据 // 处理 webhook 数据
// 在这里,我们只是简单地打印出接收到的数据 // 在这里,我们只是简单地打印出接收到的数据
println("Received webhook:", json) //println("Received webhook:", len(json))
c.JSON(http.StatusOK, gin.H{"status": "received"}) fmt.Printf("q: %v\n", json)
c.String(http.StatusBadRequest, "success")
})
router.GET("/q", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"sss": "sss",
})
println("123")
}) })
// 启动服务器 // 启动服务器