You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package wechatcallbackrouter
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type WeChatCallBackRoute struct{}
|
|
|
|
|
|
|
|
|
|
func (g *WeChatCallBackRoute) InitGroupRouter(Router *gin.RouterGroup) {
|
|
|
|
|
groupCodeRouter := Router.Group("wechatcallback")
|
|
|
|
|
var authorityApi = v1.ApiGroupApp.WeCahtCallBackGroup.WeChatCallBackApi
|
|
|
|
|
{
|
|
|
|
|
groupCodeRouter.POST("", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.POST("/", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.GET("", authorityApi.Index)
|
|
|
|
|
groupCodeRouter.GET("/", authorityApi.Index)
|
|
|
|
|
|
|
|
|
|
groupCodeRouter.POST("callbackcpimessage", authorityApi.CallbackApiMessage) //回调接收消息
|
|
|
|
|
groupCodeRouter.POST("callbackcpimessage/", authorityApi.CallbackApiMessage) //回调接收消息
|
|
|
|
|
groupCodeRouter.GET("callbackcpimessage", authorityApi.CallbackApiMessage) //回调接收消息
|
|
|
|
|
groupCodeRouter.GET("callbackcpimessage/", authorityApi.CallbackApiMessage) //回调接收消息
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|