This commit is contained in:
gusu
2023-02-28 16:33:42 +08:00
parent d664fe485c
commit 0d703ea097
13 changed files with 944 additions and 0 deletions

19
main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"gpt-wework/service"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.GET("/ping", Ping)
r.GET("/wechat/check", service.CheckWeixinSign)
r.POST("/wechat/check", service.TalkWeixin)
r.Run(":8888")
}
func Ping(c *gin.Context) {
c.Data(500, "text/plain;charset=utf-8", []byte("ff"))
}