ADD dir structure
parent
cd39a5e803
commit
e1950caa3d
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
@ -20,9 +21,17 @@ func main() {
|
|||
|
||||
// 处理 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")
|
||||
})
|
||||
|
||||
// 启动服务器
|
Loading…
Reference in New Issue