router.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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/factor_edb_series"
  12. "eta/eta_index_lib/controllers/fix"
  13. "eta/eta_index_lib/controllers/future_good"
  14. "eta/eta_index_lib/controllers/open"
  15. beego "github.com/beego/beego/v2/server/web"
  16. )
  17. func init() {
  18. ns := beego.NewNamespace("/edbapi",
  19. beego.NSNamespace("/ths",
  20. beego.NSInclude(
  21. &controllers.ThsController{},
  22. &controllers.ThsDsController{},
  23. &controllers.ThsHfController{},
  24. ),
  25. ),
  26. beego.NSNamespace("/pb",
  27. beego.NSInclude(
  28. &controllers.PbController{},
  29. ),
  30. ),
  31. beego.NSNamespace("/pb_finance",
  32. beego.NSInclude(
  33. &controllers.PbFinanceController{},
  34. ),
  35. ),
  36. beego.NSNamespace("/wind",
  37. beego.NSInclude(
  38. &controllers.WindController{},
  39. &controllers.WindWsdController{},
  40. ),
  41. ),
  42. beego.NSNamespace("/lz",
  43. beego.NSInclude(
  44. &controllers.LzController{},
  45. ),
  46. ),
  47. beego.NSNamespace("/lt",
  48. beego.NSInclude(
  49. &controllers.LtController{},
  50. ),
  51. ),
  52. beego.NSNamespace("/smm",
  53. beego.NSInclude(
  54. &controllers.SmmController{},
  55. ),
  56. ),
  57. beego.NSNamespace("/mysteel",
  58. beego.NSInclude(
  59. &controllers.MySteelController{},
  60. ),
  61. ),
  62. beego.NSNamespace("/manual",
  63. beego.NSInclude(
  64. &controllers.ManualController{},
  65. ),
  66. ),
  67. beego.NSNamespace("/calculate",
  68. beego.NSInclude(
  69. &controllers.CalculateController{},
  70. ),
  71. ),
  72. beego.NSNamespace("/zz",
  73. beego.NSInclude(
  74. &controllers.ZzController{},
  75. ),
  76. ),
  77. beego.NSNamespace("/dl",
  78. beego.NSInclude(
  79. &controllers.DlController{},
  80. ),
  81. ),
  82. beego.NSNamespace("/sh",
  83. beego.NSInclude(
  84. &controllers.ShController{},
  85. ),
  86. ),
  87. beego.NSNamespace("/cffex",
  88. beego.NSInclude(
  89. &controllers.CffexController{},
  90. ),
  91. ),
  92. beego.NSNamespace("/shfe",
  93. beego.NSInclude(
  94. &controllers.ShfeController{},
  95. ),
  96. ),
  97. beego.NSNamespace("/gie",
  98. beego.NSInclude(
  99. &controllers.GieController{},
  100. ),
  101. ),
  102. beego.NSNamespace("/coal",
  103. beego.NSInclude(
  104. &controllers.CoalController{},
  105. ),
  106. ),
  107. beego.NSNamespace("/python",
  108. beego.NSInclude(
  109. &controllers.PythonController{},
  110. ),
  111. ),
  112. beego.NSNamespace("/google_travel",
  113. beego.NSInclude(
  114. &controllers.GoogleTravelController{},
  115. ),
  116. ),
  117. beego.NSNamespace("/mysteel_chemical",
  118. beego.NSInclude(
  119. &controllers.MySteelChemicalController{},
  120. ),
  121. ),
  122. beego.NSNamespace("/predict_calculate",
  123. beego.NSInclude(
  124. &controllers.PredictCalculateController{},
  125. ),
  126. ),
  127. beego.NSNamespace("/eia_steo",
  128. beego.NSInclude(
  129. &controllers.EiaSteoController{},
  130. ),
  131. ),
  132. beego.NSNamespace("/predict",
  133. beego.NSInclude(
  134. &controllers.PredictController{},
  135. ),
  136. ),
  137. beego.NSNamespace("/future_good",
  138. beego.NSInclude(
  139. &future_good.FutureGoodEdbInfoController{},
  140. ),
  141. ),
  142. beego.NSNamespace("/sci",
  143. beego.NSInclude(
  144. &controllers.SciController{},
  145. ),
  146. ),
  147. beego.NSNamespace("/com_trade",
  148. beego.NSInclude(
  149. &controllers.ComTradeController{},
  150. ),
  151. ),
  152. beego.NSNamespace("/baiinfo",
  153. beego.NSInclude(
  154. &controllers.BaiinfoController{},
  155. ),
  156. ),
  157. beego.NSNamespace("/yongyi",
  158. beego.NSInclude(
  159. &controllers.YongyiController{},
  160. ),
  161. ),
  162. beego.NSNamespace("/stock_plant",
  163. beego.NSInclude(
  164. &controllers.StockPlantController{},
  165. ),
  166. ),
  167. beego.NSNamespace("/national_statistics",
  168. beego.NSInclude(
  169. &controllers.NationalStatisticsController{},
  170. ),
  171. ),
  172. beego.NSNamespace("/fubao",
  173. beego.NSInclude(
  174. &controllers.FuBaoController{},
  175. ),
  176. ),
  177. beego.NSNamespace("/open",
  178. beego.NSInclude(
  179. &open.EdbInfoController{},
  180. ),
  181. ),
  182. beego.NSNamespace("/classify",
  183. beego.NSInclude(
  184. &controllers.EdbClassifyController{},
  185. ),
  186. ),
  187. beego.NSNamespace("/edb_info",
  188. beego.NSInclude(
  189. &controllers.EdbInfoController{},
  190. ),
  191. ),
  192. beego.NSNamespace("/edb_info_calculate",
  193. beego.NSInclude(
  194. &controllers.EdbInfoCalculateController{},
  195. ),
  196. ),
  197. beego.NSNamespace("/exchange_crawler",
  198. beego.NSInclude(
  199. &controllers.ExchangeCrawler{},
  200. ),
  201. ),
  202. beego.NSNamespace("/fix",
  203. beego.NSInclude(
  204. &fix.CustomAnalysisController{},
  205. ),
  206. ),
  207. beego.NSNamespace("/jiayue_index",
  208. beego.NSInclude(
  209. &controllers.JiaYueController{},
  210. ),
  211. ),
  212. beego.NSNamespace("/edb_stat",
  213. beego.NSInclude(
  214. &controllers.EdbInfoStatController{},
  215. ),
  216. ),
  217. beego.NSNamespace("/coal_mine",
  218. beego.NSInclude(
  219. &controllers.CoalMineDataController{},
  220. ),
  221. ),
  222. beego.NSNamespace("/fenwei",
  223. beego.NSInclude(
  224. &controllers.FenweiController{},
  225. ),
  226. ),
  227. beego.NSNamespace("/gz",
  228. beego.NSInclude(
  229. &controllers.GzController{},
  230. ),
  231. ),
  232. beego.NSNamespace("/mtjh",
  233. beego.NSInclude(
  234. &controllers.MtjhDataController{},
  235. ),
  236. ),
  237. beego.NSNamespace("/icpi",
  238. beego.NSInclude(
  239. &controllers.IcpiController{},
  240. ),
  241. ),
  242. beego.NSNamespace("/edb_refresh",
  243. beego.NSInclude(
  244. &controllers.EdbRefreshController{},
  245. ),
  246. ),
  247. beego.NSNamespace("/bloomberg",
  248. beego.NSInclude(
  249. &controllers.BloombergController{},
  250. ),
  251. ),
  252. beego.NSNamespace("/business_index",
  253. beego.NSInclude(
  254. &controllers.BusinessIndexController{},
  255. ),
  256. ),
  257. beego.NSNamespace("/sci99",
  258. beego.NSInclude(
  259. &controllers.Sci99Controller{},
  260. ),
  261. ),
  262. beego.NSNamespace("/sci99_crawler",
  263. beego.NSInclude(
  264. &controllers.Sci99Crawler{},
  265. ),
  266. ),
  267. beego.NSNamespace("/ccf",
  268. beego.NSInclude(
  269. &controllers.CCFController{},
  270. ),
  271. ),
  272. beego.NSNamespace("/shanghai_smm",
  273. beego.NSInclude(
  274. &controllers.ShanghaiSmmController{},
  275. ),
  276. ),
  277. beego.NSNamespace("/sci_hq",
  278. beego.NSInclude(
  279. &controllers.SciHqController{},
  280. ),
  281. ),
  282. beego.NSNamespace("/factor_edb_series",
  283. beego.NSInclude(
  284. &factor_edb_series.FactorEdbSeriesController{},
  285. ),
  286. ),
  287. beego.NSNamespace("/ly",
  288. beego.NSInclude(
  289. &controllers.BaseFromLyController{},
  290. ),
  291. ),
  292. beego.NSNamespace("/oilchem",
  293. beego.NSInclude(
  294. &controllers.OilchemController{},
  295. ),
  296. ),
  297. beego.NSNamespace("/trade_analysis",
  298. beego.NSInclude(
  299. &controllers.BaseFromTradeAnalysisController{},
  300. ),
  301. ),
  302. beego.NSNamespace("/hisugar",
  303. beego.NSInclude(
  304. &controllers.HisugarController{},
  305. ),
  306. ),
  307. )
  308. beego.AddNamespace(ns)
  309. }