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.
20 lines
662 B
20 lines
662 B
package wechaturl
|
|
|
|
import (
|
|
"key_performance_indicators/middleware/wechatapp"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 企业微信回调路由
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("wechatcallback")
|
|
|
|
var methodBinding = wechatapp.WechatAppApi.WechatCallBackApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
apiRouter.GET("callback_message_api", methodBinding.CallbackMessageApi) //回调入口
|
|
apiRouter.POST("callback_message_api", methodBinding.CallbackMessageApi) //回调入口
|
|
}
|
|
}
|
|
|