commentsRouter_controllers.go 1.7 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["eta/eta_pub/controllers:ImageController"] = append(beego.GlobalControllerRouter["eta/eta_pub/controllers:ImageController"],
  8. beego.ControllerComments{
  9. Method: "Ppt2Image",
  10. Router: "/ppt2img",
  11. AllowHTTPMethods: []string{"post"},
  12. MethodParams: param.Make(),
  13. Filters: nil,
  14. Params: nil})
  15. beego.GlobalControllerRouter["eta/eta_pub/controllers:ImageController"] = append(beego.GlobalControllerRouter["eta/eta_pub/controllers:ImageController"],
  16. beego.ControllerComments{
  17. Method: "Base64Upload",
  18. Router: "/svg_to_png",
  19. AllowHTTPMethods: []string{"post"},
  20. MethodParams: param.Make(),
  21. Filters: nil,
  22. Params: nil})
  23. beego.GlobalControllerRouter["eta/eta_pub/controllers:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_pub/controllers:ReportController"],
  24. beego.ControllerComments{
  25. Method: "HandleVideoDecibel",
  26. Router: "/handle_video_decibel",
  27. AllowHTTPMethods: []string{"post"},
  28. MethodParams: param.Make(),
  29. Filters: nil,
  30. Params: nil})
  31. beego.GlobalControllerRouter["eta/eta_pub/controllers:WechatController"] = append(beego.GlobalControllerRouter["eta/eta_pub/controllers:WechatController"],
  32. beego.ControllerComments{
  33. Method: "SendTemplateMsg",
  34. Router: "/send_template_msg",
  35. AllowHTTPMethods: []string{"post"},
  36. MethodParams: param.Make(),
  37. Filters: nil,
  38. Params: nil})
  39. }