router.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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_index_lib/controllers"
  11. "eta/eta_index_lib/controllers/future_good"
  12. "eta/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("/ths",
  18. beego.NSInclude(
  19. &controllers.ThsController{},
  20. ),
  21. ),
  22. beego.NSNamespace("/pb",
  23. beego.NSInclude(
  24. &controllers.PbController{},
  25. ),
  26. ),
  27. beego.NSNamespace("/pb_finance",
  28. beego.NSInclude(
  29. &controllers.PbFinanceController{},
  30. ),
  31. ),
  32. beego.NSNamespace("/wind",
  33. beego.NSInclude(
  34. &controllers.WindController{},
  35. ),
  36. ),
  37. beego.NSNamespace("/lz",
  38. beego.NSInclude(
  39. &controllers.LzController{},
  40. ),
  41. ),
  42. beego.NSNamespace("/lt",
  43. beego.NSInclude(
  44. &controllers.LtController{},
  45. ),
  46. ),
  47. beego.NSNamespace("/smm",
  48. beego.NSInclude(
  49. &controllers.SmmController{},
  50. ),
  51. ),
  52. beego.NSNamespace("/mysteel",
  53. beego.NSInclude(
  54. &controllers.MySteelController{},
  55. ),
  56. ),
  57. beego.NSNamespace("/manual",
  58. beego.NSInclude(
  59. &controllers.ManualController{},
  60. ),
  61. ),
  62. beego.NSNamespace("/calculate",
  63. beego.NSInclude(
  64. &controllers.CalculateController{},
  65. ),
  66. ),
  67. beego.NSNamespace("/zz",
  68. beego.NSInclude(
  69. &controllers.ZzController{},
  70. ),
  71. ),
  72. beego.NSNamespace("/dl",
  73. beego.NSInclude(
  74. &controllers.DlController{},
  75. ),
  76. ),
  77. beego.NSNamespace("/sh",
  78. beego.NSInclude(
  79. &controllers.ShController{},
  80. ),
  81. ),
  82. beego.NSNamespace("/cffex",
  83. beego.NSInclude(
  84. &controllers.CffexController{},
  85. ),
  86. ),
  87. beego.NSNamespace("/shfe",
  88. beego.NSInclude(
  89. &controllers.ShfeController{},
  90. ),
  91. ),
  92. beego.NSNamespace("/gie",
  93. beego.NSInclude(
  94. &controllers.GieController{},
  95. ),
  96. ),
  97. beego.NSNamespace("/coal",
  98. beego.NSInclude(
  99. &controllers.CoalController{},
  100. ),
  101. ),
  102. beego.NSNamespace("/python",
  103. beego.NSInclude(
  104. &controllers.PythonController{},
  105. ),
  106. ),
  107. beego.NSNamespace("/google_travel",
  108. beego.NSInclude(
  109. &controllers.GoogleTravelController{},
  110. ),
  111. ),
  112. beego.NSNamespace("/mysteel_chemical",
  113. beego.NSInclude(
  114. &controllers.MySteelChemicalController{},
  115. ),
  116. ),
  117. beego.NSNamespace("/predict_calculate",
  118. beego.NSInclude(
  119. &controllers.PredictCalculateController{},
  120. ),
  121. ),
  122. beego.NSNamespace("/eia_steo",
  123. beego.NSInclude(
  124. &controllers.EiaSteoController{},
  125. ),
  126. ),
  127. beego.NSNamespace("/predict",
  128. beego.NSInclude(
  129. &controllers.PredictController{},
  130. ),
  131. ),
  132. beego.NSNamespace("/future_good",
  133. beego.NSInclude(
  134. &future_good.FutureGoodEdbInfoController{},
  135. ),
  136. ),
  137. beego.NSNamespace("/sci",
  138. beego.NSInclude(
  139. &controllers.SciController{},
  140. ),
  141. ),
  142. beego.NSNamespace("/com_trade",
  143. beego.NSInclude(
  144. &controllers.ComTradeController{},
  145. ),
  146. ),
  147. beego.NSNamespace("/baiinfo",
  148. beego.NSInclude(
  149. &controllers.BaiinfoController{},
  150. ),
  151. ),
  152. beego.NSNamespace("/stock_plant",
  153. beego.NSInclude(
  154. &controllers.StockPlantController{},
  155. ),
  156. ),
  157. beego.NSNamespace("/national_statistics",
  158. beego.NSInclude(
  159. &controllers.NationalStatisticsController{},
  160. ),
  161. ),
  162. beego.NSNamespace("/fubao",
  163. beego.NSInclude(
  164. &controllers.FuBaoController{},
  165. ),
  166. ),
  167. beego.NSNamespace("/open",
  168. beego.NSInclude(
  169. &open.EdbInfoController{},
  170. ),
  171. ),
  172. beego.NSNamespace("/classify",
  173. beego.NSInclude(
  174. &controllers.EdbClassifyController{},
  175. ),
  176. ),
  177. beego.NSNamespace("/edb_info",
  178. beego.NSInclude(
  179. &controllers.EdbInfoController{},
  180. ),
  181. ),
  182. beego.NSNamespace("/edb_info_calculate",
  183. beego.NSInclude(
  184. &controllers.EdbInfoCalculateController{},
  185. ),
  186. ),
  187. )
  188. beego.AddNamespace(ns)
  189. }