mirror of
https://github.com/razertory/gpt-wework
synced 2025-10-20 13:45:18 +08:00
21 lines
362 B
Go
21 lines
362 B
Go
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.POST("/chat", service.Chat)
|
|
r.Run(":8888")
|
|
}
|
|
|
|
func Ping(c *gin.Context) {
|
|
c.Data(500, "text/plain;charset=utf-8", []byte("ff"))
|
|
}
|