router.go 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // @APIVersion 1.0.0
  2. // @Title beego Test API
  3. // @Description beego has a very cool tools to autogenerate documents for your API
  4. // @Contact astaxie@gmail.com
  5. // @TermsOfServiceUrl http://beego.me/
  6. // @License Apache 2.0
  7. // @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
  8. package routers
  9. import (
  10. "eta/eta_data_push/controllers"
  11. beego "github.com/beego/beego/v2/server/web"
  12. )
  13. func init() {
  14. ns := beego.NewNamespace("/hzdataapi",
  15. beego.NSNamespace("/index",
  16. beego.NSInclude(
  17. &controllers.IndexController{},
  18. ),
  19. ),
  20. beego.NSNamespace("/edb_index",
  21. beego.NSInclude(
  22. &controllers.EdbInfoController{},
  23. ),
  24. ),
  25. beego.NSNamespace("/edb_info_calculate",
  26. beego.NSInclude(
  27. &controllers.EdbInfoCalculateController{},
  28. ),
  29. ),
  30. beego.NSNamespace("/classify",
  31. beego.NSInclude(
  32. &controllers.ClassifyController{},
  33. ),
  34. ),
  35. beego.NSNamespace("/contract",
  36. beego.NSInclude(
  37. &controllers.ContractController{},
  38. ),
  39. ),
  40. )
  41. beego.AddNamespace(ns)
  42. }