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 workwechatrouter
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"appPlatform/api/version1"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 微信路由
|
|
|
|
|
func (a *ApiRouter) RouterGroupPc(router *gin.RouterGroup) {
|
|
|
|
|
apiRouter := router.Group("wechat")
|
|
|
|
|
|
|
|
|
|
var methodBinding = version1.AppApiEntry.WechatApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("lookOnePeopleArchives", methodBinding.LookOnePeopleArchives) //获取人员信息单页(手机)查看权限
|
|
|
|
|
apiRouter.GET("obtainAuthorization", methodBinding.ObtainAuthorization) //构造企业微信网页授权code
|
|
|
|
|
apiRouter.GET("wechatCallBack", methodBinding.WechatCallBack) //企业微信参数地址重定向回调
|
|
|
|
|
apiRouter.POST("sendMsg", methodBinding.SendMsg) //向企业微信发送消息
|
|
|
|
|
}
|
|
|
|
|
}
|