wechat.go 404 B

123456789101112131415161718
  1. package system
  2. import (
  3. v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type WechatRouter struct {
  7. }
  8. func (s *WechatRouter) InitWechatRouter(Router *gin.RouterGroup) {
  9. wechatRouter := Router.Group("wechat")
  10. var wechatApi = v1.ApiGroupApp.SystemApiGroup.WechatApi
  11. {
  12. wechatRouter.Any("serve", wechatApi.Req)
  13. wechatRouter.Any("auth", wechatApi.Auth)
  14. }
  15. }