router.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. beego "github.com/beego/beego/v2/server/web"
  11. "hongze/hongze_edb_lib/controllers"
  12. "hongze/hongze_edb_lib/controllers/future_good"
  13. )
  14. func init() {
  15. ns := beego.NewNamespace("/edbapi",
  16. beego.NSNamespace("/ths",
  17. beego.NSInclude(
  18. &controllers.ThsController{},
  19. ),
  20. ),
  21. beego.NSNamespace("/pb",
  22. beego.NSInclude(
  23. &controllers.PbController{},
  24. ),
  25. ),
  26. beego.NSNamespace("/pb_finance",
  27. beego.NSInclude(
  28. &controllers.PbFinanceController{},
  29. ),
  30. ),
  31. beego.NSNamespace("/wind",
  32. beego.NSInclude(
  33. &controllers.WindController{},
  34. ),
  35. ),
  36. beego.NSNamespace("/lz",
  37. beego.NSInclude(
  38. &controllers.LzController{},
  39. ),
  40. ),
  41. beego.NSNamespace("/lt",
  42. beego.NSInclude(
  43. &controllers.LtController{},
  44. ),
  45. ),
  46. beego.NSNamespace("/smm",
  47. beego.NSInclude(
  48. &controllers.SmmController{},
  49. ),
  50. ),
  51. beego.NSNamespace("/mysteel",
  52. beego.NSInclude(
  53. &controllers.MySteelController{},
  54. ),
  55. ),
  56. beego.NSNamespace("/manual",
  57. beego.NSInclude(
  58. &controllers.ManualController{},
  59. ),
  60. ),
  61. beego.NSNamespace("/calculate",
  62. beego.NSInclude(
  63. &controllers.CalculateController{},
  64. ),
  65. ),
  66. beego.NSNamespace("/zz",
  67. beego.NSInclude(
  68. &controllers.ZzController{},
  69. ),
  70. ),
  71. beego.NSNamespace("/dl",
  72. beego.NSInclude(
  73. &controllers.DlController{},
  74. ),
  75. ),
  76. beego.NSNamespace("/sh",
  77. beego.NSInclude(
  78. &controllers.ShController{},
  79. ),
  80. ),
  81. beego.NSNamespace("/cffex",
  82. beego.NSInclude(
  83. &controllers.CffexController{},
  84. ),
  85. ),
  86. beego.NSNamespace("/shfe",
  87. beego.NSInclude(
  88. &controllers.ShfeController{},
  89. ),
  90. ),
  91. beego.NSNamespace("/gie",
  92. beego.NSInclude(
  93. &controllers.GieController{},
  94. ),
  95. ),
  96. beego.NSNamespace("/coal",
  97. beego.NSInclude(
  98. &controllers.CoalController{},
  99. ),
  100. ),
  101. beego.NSNamespace("/python",
  102. beego.NSInclude(
  103. &controllers.PythonController{},
  104. ),
  105. ),
  106. beego.NSNamespace("/google_travel",
  107. beego.NSInclude(
  108. &controllers.GoogleTravelController{},
  109. ),
  110. ),
  111. beego.NSNamespace("/mysteel_chemical",
  112. beego.NSInclude(
  113. &controllers.MySteelChemicalController{},
  114. ),
  115. ),
  116. beego.NSNamespace("/predict_calculate",
  117. beego.NSInclude(
  118. &controllers.PredictCalculateController{},
  119. ),
  120. ),
  121. beego.NSNamespace("/eia_steo",
  122. beego.NSInclude(
  123. &controllers.EiaSteoController{},
  124. ),
  125. ),
  126. beego.NSNamespace("/predict",
  127. beego.NSInclude(
  128. &controllers.PredictController{},
  129. ),
  130. ),
  131. beego.NSNamespace("/future_good",
  132. beego.NSInclude(
  133. &future_good.FutureGoodEdbInfoController{},
  134. ),
  135. ),
  136. beego.NSNamespace("/sci",
  137. beego.NSInclude(
  138. &controllers.SciController{},
  139. ),
  140. ),
  141. beego.NSNamespace("/com_trade",
  142. beego.NSInclude(
  143. &controllers.ComTradeController{},
  144. ),
  145. ),
  146. beego.NSNamespace("/baiinfo",
  147. beego.NSInclude(
  148. &controllers.BaiinfoController{},
  149. ),
  150. ),
  151. beego.NSNamespace("/stock_plant",
  152. beego.NSInclude(
  153. &controllers.StockPlantController{},
  154. ),
  155. ),
  156. beego.NSNamespace("/national_statistics",
  157. beego.NSInclude(
  158. &controllers.NationalStatisticsController{},
  159. ),
  160. ),
  161. )
  162. beego.AddNamespace(ns)
  163. }