router.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_gn/eta_index_lib/controllers"
  11. "eta_gn/eta_index_lib/controllers/factor_edb_series"
  12. "eta_gn/eta_index_lib/controllers/open"
  13. beego "github.com/beego/beego/v2/server/web"
  14. )
  15. func init() {
  16. ns := beego.NewNamespace("/edbapi",
  17. beego.NSNamespace("/manual",
  18. beego.NSInclude(
  19. &controllers.ManualController{},
  20. ),
  21. ),
  22. beego.NSNamespace("/calculate",
  23. beego.NSInclude(
  24. &controllers.CalculateController{},
  25. ),
  26. ),
  27. beego.NSNamespace("/python",
  28. beego.NSInclude(
  29. &controllers.PythonController{},
  30. ),
  31. ),
  32. beego.NSNamespace("/predict_calculate",
  33. beego.NSInclude(
  34. &controllers.PredictCalculateController{},
  35. ),
  36. ),
  37. beego.NSNamespace("/predict",
  38. beego.NSInclude(
  39. &controllers.PredictController{},
  40. ),
  41. ),
  42. beego.NSNamespace("/stock_plant",
  43. beego.NSInclude(
  44. &controllers.StockPlantController{},
  45. ),
  46. ),
  47. beego.NSNamespace("/open",
  48. beego.NSInclude(
  49. &open.EdbInfoController{},
  50. ),
  51. ),
  52. beego.NSNamespace("/classify",
  53. beego.NSInclude(
  54. &controllers.EdbClassifyController{},
  55. ),
  56. ),
  57. beego.NSNamespace("/edb_info",
  58. beego.NSInclude(
  59. &controllers.EdbInfoController{},
  60. ),
  61. ),
  62. beego.NSNamespace("/edb_info_calculate",
  63. beego.NSInclude(
  64. &controllers.EdbInfoCalculateController{},
  65. ),
  66. ),
  67. beego.NSNamespace("/gn_index",
  68. beego.NSInclude(
  69. &controllers.GnController{},
  70. ),
  71. ),
  72. beego.NSNamespace("/edb_stat",
  73. beego.NSInclude(
  74. &controllers.EdbInfoStatController{},
  75. ),
  76. ),
  77. beego.NSNamespace("/edb_refresh",
  78. beego.NSInclude(
  79. &controllers.EdbRefreshController{},
  80. ),
  81. ),
  82. beego.NSNamespace("/business_index",
  83. beego.NSInclude(
  84. &controllers.BusinessIndexController{},
  85. ),
  86. ),
  87. beego.NSNamespace("/factor_edb_series",
  88. beego.NSInclude(
  89. &factor_edb_series.FactorEdbSeriesController{},
  90. ),
  91. ),
  92. beego.NSNamespace("/trade_analysis",
  93. beego.NSInclude(
  94. &controllers.BaseFromTradeAnalysisController{},
  95. ),
  96. ),
  97. )
  98. beego.AddNamespace(ns)
  99. }