commentsRouter.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package routers
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. "github.com/beego/beego/v2/server/web/context/param"
  5. )
  6. func init() {
  7. beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"] = append(beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"],
  8. beego.ControllerComments{
  9. Method: "GetWxSign",
  10. Router: `/getWxSign`,
  11. AllowHTTPMethods: []string{"get"},
  12. MethodParams: param.Make(),
  13. Filters: nil,
  14. Params: nil})
  15. beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"] = append(beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"],
  16. beego.ControllerComments{
  17. Method: "WechatLoginByGzh",
  18. Router: `/loginByGzh`,
  19. AllowHTTPMethods: []string{"get"},
  20. MethodParams: param.Make(),
  21. Filters: nil,
  22. Params: nil})
  23. beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"] = append(beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatCommonController"],
  24. beego.ControllerComments{
  25. Method: "Notify",
  26. Router: `/notify`,
  27. AllowHTTPMethods: []string{"get","post"},
  28. MethodParams: param.Make(),
  29. Filters: nil,
  30. Params: nil})
  31. beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatController"] = append(beego.GlobalControllerRouter["hongze/hongze_mfyx_gzh/controllers:WechatController"],
  32. beego.ControllerComments{
  33. Method: "UserInfo",
  34. Router: `/user/detail`,
  35. AllowHTTPMethods: []string{"get"},
  36. MethodParams: param.Make(),
  37. Filters: nil,
  38. Params: nil})
  39. }