router.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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("/python",
  103. beego.NSInclude(
  104. &controllers.PythonController{},
  105. ),
  106. ),
  107. beego.NSNamespace("/coal",
  108. beego.NSInclude(
  109. &controllers.CoalController{},
  110. ),
  111. ),
  112. beego.NSNamespace("/google_travel",
  113. beego.NSInclude(
  114. &controllers.GoogleTravelController{},
  115. ),
  116. ),
  117. beego.NSNamespace("/predict_calculate",
  118. beego.NSInclude(
  119. &controllers.PredictCalculateController{},
  120. ),
  121. ),
  122. beego.NSNamespace("/mysteel_chemical",
  123. beego.NSInclude(
  124. &controllers.MySteelChemicalController{},
  125. ),
  126. ),
  127. beego.NSNamespace("/mysteel_chemical",
  128. beego.NSInclude(
  129. &controllers.MySteelChemicalController{},
  130. ),
  131. ),
  132. beego.NSNamespace("/predict_calculate",
  133. beego.NSInclude(
  134. &controllers.PredictCalculateController{},
  135. ),
  136. ),
  137. beego.NSNamespace("/eia_steo",
  138. beego.NSInclude(
  139. &controllers.EiaSteoController{},
  140. ),
  141. ),
  142. beego.NSNamespace("/predict",
  143. beego.NSInclude(
  144. &controllers.PredictController{},
  145. ),
  146. ),
  147. beego.NSNamespace("/future_good",
  148. beego.NSInclude(
  149. &future_good.FutureGoodEdbInfoController{},
  150. ),
  151. ),
  152. beego.NSNamespace("/sci",
  153. beego.NSInclude(
  154. &controllers.SciController{},
  155. ),
  156. ),
  157. beego.NSNamespace("/com_trade",
  158. beego.NSInclude(
  159. &controllers.ComTradeController{},
  160. ),
  161. ),
  162. beego.NSNamespace("/baiinfo",
  163. beego.NSInclude(
  164. &controllers.BaiinfoController{},
  165. ),
  166. ),
  167. beego.NSNamespace("/yongyi",
  168. beego.NSInclude(
  169. &controllers.YongyiController{},
  170. ),
  171. ),
  172. beego.NSNamespace("/stock_plant",
  173. beego.NSInclude(
  174. &controllers.StockPlantController{},
  175. ),
  176. ),
  177. beego.NSNamespace("/national_statistics",
  178. beego.NSInclude(
  179. &controllers.NationalStatisticsController{},
  180. ),
  181. ),
  182. beego.NSNamespace("/fubao",
  183. beego.NSInclude(
  184. &controllers.FuBaoController{},
  185. ),
  186. ),
  187. beego.NSNamespace("/open",
  188. beego.NSInclude(
  189. &open.EdbInfoController{},
  190. ),
  191. ),
  192. beego.NSNamespace("/classify",
  193. beego.NSInclude(
  194. &controllers.EdbClassifyController{},
  195. ),
  196. ),
  197. beego.NSNamespace("/edb_info",
  198. beego.NSInclude(
  199. &controllers.EdbInfoController{},
  200. ),
  201. ),
  202. beego.NSNamespace("/edb_info_calculate",
  203. beego.NSInclude(
  204. &controllers.EdbInfoCalculateController{},
  205. ),
  206. ),
  207. beego.NSNamespace("/exchange_crawler",
  208. beego.NSInclude(
  209. &controllers.ExchangeCrawler{},
  210. ),
  211. ),
  212. beego.NSNamespace("/fix",
  213. beego.NSInclude(
  214. &fix.CustomAnalysisController{},
  215. ),
  216. ),
  217. beego.NSNamespace("/jiayue_index",
  218. beego.NSInclude(
  219. &controllers.JiaYueController{},
  220. ),
  221. ),
  222. beego.NSNamespace("/edb_stat",
  223. beego.NSInclude(
  224. &controllers.EdbInfoStatController{},
  225. ),
  226. ),
  227. beego.NSNamespace("/coal_mine",
  228. beego.NSInclude(
  229. &controllers.CoalMineDataController{},
  230. ),
  231. ),
  232. beego.NSNamespace("/gz",
  233. beego.NSInclude(
  234. &controllers.GzController{},
  235. ),
  236. ),
  237. beego.NSNamespace("/icpi",
  238. beego.NSInclude(
  239. &controllers.IcpiController{},
  240. ),
  241. ),
  242. beego.NSNamespace("/fenwei",
  243. beego.NSInclude(
  244. &controllers.FenweiController{},
  245. ),
  246. ),
  247. beego.NSNamespace("/mtjh",
  248. beego.NSInclude(
  249. &controllers.MtjhDataController{},
  250. ),
  251. ),
  252. beego.NSNamespace("/edb_refresh",
  253. beego.NSInclude(
  254. &controllers.EdbRefreshController{},
  255. ),
  256. ),
  257. beego.NSNamespace("/bloomberg",
  258. beego.NSInclude(
  259. &controllers.BloombergController{},
  260. ),
  261. ),
  262. beego.NSNamespace("/business_index",
  263. beego.NSInclude(
  264. &controllers.BusinessIndexController{},
  265. ),
  266. ),
  267. beego.NSNamespace("/sci99",
  268. beego.NSInclude(
  269. &controllers.Sci99Controller{},
  270. ),
  271. ),
  272. beego.NSNamespace("/sci99_crawler",
  273. beego.NSInclude(
  274. &controllers.Sci99Crawler{},
  275. ),
  276. ),
  277. beego.NSNamespace("/ccf",
  278. beego.NSInclude(
  279. &controllers.CCFController{},
  280. ),
  281. ),
  282. beego.NSNamespace("/shanghai_smm",
  283. beego.NSInclude(
  284. &controllers.ShanghaiSmmController{},
  285. ),
  286. ),
  287. beego.NSNamespace("/sci_hq",
  288. beego.NSInclude(
  289. &controllers.SciHqController{},
  290. ),
  291. ),
  292. beego.NSNamespace("/factor_edb_series",
  293. beego.NSInclude(
  294. &factor_edb_series.FactorEdbSeriesController{},
  295. ),
  296. ),
  297. beego.NSNamespace("/ly",
  298. beego.NSInclude(
  299. &controllers.BaseFromLyController{},
  300. ),
  301. ),
  302. beego.NSNamespace("/rzd",
  303. beego.NSInclude(
  304. &controllers.BaseFromRzdController{},
  305. ),
  306. ),
  307. beego.NSNamespace("/oilchem",
  308. beego.NSInclude(
  309. &controllers.OilchemController{},
  310. ),
  311. ),
  312. beego.NSNamespace("/ly",
  313. beego.NSInclude(
  314. &controllers.BaseFromLyController{},
  315. ),
  316. ),
  317. beego.NSNamespace("/trade_analysis",
  318. beego.NSInclude(
  319. &controllers.BaseFromTradeAnalysisController{},
  320. ),
  321. ),
  322. beego.NSNamespace("/trade_analysis",
  323. beego.NSInclude(
  324. &controllers.BaseFromTradeAnalysisController{},
  325. ),
  326. ),
  327. beego.NSNamespace("/usda_fas",
  328. beego.NSInclude(
  329. &controllers.UsdaFasController{},
  330. ),
  331. ),
  332. beego.NSNamespace("/hisugar",
  333. beego.NSInclude(
  334. &controllers.HisugarController{},
  335. ),
  336. ),
  337. beego.NSNamespace("/clarksons",
  338. beego.NSInclude(
  339. &controllers.ClarksonsDataController{},
  340. ),
  341. ),
  342. beego.NSNamespace("/gpr_risk",
  343. beego.NSInclude(
  344. &controllers.GprRiskController{},
  345. ),
  346. ),
  347. )
  348. beego.AddNamespace(ns)
  349. }