mirror of
https://github.com/razertory/gpt-wework
synced 2025-10-27 00:50:22 +08:00
init
This commit is contained in:
19
main.go
Normal file
19
main.go
Normal 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"))
|
||||
}
|
||||
Reference in New Issue
Block a user