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.
26 lines
852 B
26 lines
852 B
package wechatapp
|
|
|
|
import (
|
|
"gin_server_admin/api/wechatapp"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 企业微信回调路由
|
|
type CallBackWeCahtApi struct{}
|
|
|
|
func (g *CallBackWeCahtApi) InitGroupRouter(Router *gin.RouterGroup) {
|
|
groupCodeRouter := Router.Group("callback")
|
|
var authorityApi = wechatapp.ApiGroupApp.WorkWeChatCallBackApi.WeChatCallBackApi
|
|
{
|
|
groupCodeRouter.POST("", authorityApi.Index)
|
|
groupCodeRouter.POST("/", authorityApi.Index)
|
|
groupCodeRouter.GET("", authorityApi.Index)
|
|
groupCodeRouter.GET("/", authorityApi.Index)
|
|
|
|
groupCodeRouter.POST("callbackmsgapi", authorityApi.CallbackMessageApi)
|
|
// groupCodeRouter.POST("/callbackmsgapi", authorityApi.CallbackMessageApi)
|
|
groupCodeRouter.GET("callbackmsgapi", authorityApi.CallbackMessageApi)
|
|
// groupCodeRouter.GET("/callbackmsgapi", authorityApi.CallbackMessageApi)
|
|
|
|
}
|
|
}
|
|
|