commentsRouter.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. package routers
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. "github.com/beego/beego/v2/server/web/context/param"
  5. )
  6. func init() {
  7. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"],
  8. beego.ControllerComments{
  9. Method: "Count",
  10. Router: `/count`,
  11. AllowHTTPMethods: []string{"post"},
  12. MethodParams: param.Make(),
  13. Filters: nil,
  14. Params: nil})
  15. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"],
  16. beego.ControllerComments{
  17. Method: "List",
  18. Router: `/list`,
  19. AllowHTTPMethods: []string{"get"},
  20. MethodParams: param.Make(
  21. param.New("mediaType"),
  22. param.New("permissionIds"),
  23. ),
  24. Filters: nil,
  25. Params: nil})
  26. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"],
  27. beego.ControllerComments{
  28. Method: "GetMedia",
  29. Router: `/media`,
  30. AllowHTTPMethods: []string{"get"},
  31. MethodParams: param.Make(
  32. param.New("mediaType"),
  33. param.New("mediaId"),
  34. ),
  35. Filters: nil,
  36. Params: nil})
  37. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/media:MediaController"],
  38. beego.ControllerComments{
  39. Method: "Search",
  40. Router: `/search`,
  41. AllowHTTPMethods: []string{"get"},
  42. MethodParams: param.Make(
  43. param.New("mediaType"),
  44. param.New("key"),
  45. ),
  46. Filters: nil,
  47. Params: nil})
  48. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  49. beego.ControllerComments{
  50. Method: "Count",
  51. Router: `/count`,
  52. AllowHTTPMethods: []string{"post"},
  53. MethodParams: param.Make(),
  54. Filters: nil,
  55. Params: nil})
  56. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  57. beego.ControllerComments{
  58. Method: "HotRanked",
  59. Router: `/hotRankedList`,
  60. AllowHTTPMethods: []string{"get"},
  61. MethodParams: param.Make(
  62. param.New("permissionIds"),
  63. param.New("limit"),
  64. ),
  65. Filters: nil,
  66. Params: nil})
  67. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  68. beego.ControllerComments{
  69. Method: "List",
  70. Router: `/list`,
  71. AllowHTTPMethods: []string{"get"},
  72. MethodParams: param.Make(
  73. param.New("permissionIds"),
  74. ),
  75. Filters: nil,
  76. Params: nil})
  77. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  78. beego.ControllerComments{
  79. Method: "GetPermissions",
  80. Router: `/permissionList`,
  81. AllowHTTPMethods: []string{"get"},
  82. MethodParams: param.Make(),
  83. Filters: nil,
  84. Params: nil})
  85. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  86. beego.ControllerComments{
  87. Method: "PublishRanked",
  88. Router: `/publishRankedList`,
  89. AllowHTTPMethods: []string{"get"},
  90. MethodParams: param.Make(
  91. param.New("limit"),
  92. param.New("week"),
  93. ),
  94. Filters: nil,
  95. Params: nil})
  96. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  97. beego.ControllerComments{
  98. Method: "GetReport",
  99. Router: `/report`,
  100. AllowHTTPMethods: []string{"get"},
  101. MethodParams: param.Make(
  102. param.New("reportId"),
  103. ),
  104. Filters: nil,
  105. Params: nil})
  106. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/report:ReportController"],
  107. beego.ControllerComments{
  108. Method: "Search",
  109. Router: `/search`,
  110. AllowHTTPMethods: []string{"get"},
  111. MethodParams: param.Make(
  112. param.New("key"),
  113. ),
  114. Filters: nil,
  115. Params: nil})
  116. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"],
  117. beego.ControllerComments{
  118. Method: "AnalystDetail",
  119. Router: `/analystDetail`,
  120. AllowHTTPMethods: []string{"get"},
  121. MethodParams: param.Make(
  122. param.New("analystId"),
  123. ),
  124. Filters: nil,
  125. Params: nil})
  126. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"],
  127. beego.ControllerComments{
  128. Method: "AnalystList",
  129. Router: `/list`,
  130. AllowHTTPMethods: []string{"get"},
  131. MethodParams: param.Make(),
  132. Filters: nil,
  133. Params: nil})
  134. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"],
  135. beego.ControllerComments{
  136. Method: "MediaList",
  137. Router: `/mediaList`,
  138. AllowHTTPMethods: []string{"get"},
  139. MethodParams: param.Make(
  140. param.New("mediaType"),
  141. param.New("analystId"),
  142. ),
  143. Filters: nil,
  144. Params: nil})
  145. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AnalystController"],
  146. beego.ControllerComments{
  147. Method: "AnalystReportList",
  148. Router: `/reportList`,
  149. AllowHTTPMethods: []string{"get"},
  150. MethodParams: param.Make(
  151. param.New("analystName"),
  152. ),
  153. Filters: nil,
  154. Params: nil})
  155. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  156. beego.ControllerComments{
  157. Method: "AreaCodes",
  158. Router: `/areaCodes`,
  159. AllowHTTPMethods: []string{"get"},
  160. MethodParams: param.Make(),
  161. Filters: nil,
  162. Params: nil})
  163. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  164. beego.ControllerComments{
  165. Method: "BindGzh",
  166. Router: `/bind_gzh`,
  167. AllowHTTPMethods: []string{"get"},
  168. MethodParams: param.Make(
  169. param.New("code"),
  170. ),
  171. Filters: nil,
  172. Params: nil})
  173. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  174. beego.ControllerComments{
  175. Method: "Disclaimer",
  176. Router: `/disclaimer`,
  177. AllowHTTPMethods: []string{"get"},
  178. MethodParams: param.Make(),
  179. Filters: nil,
  180. Params: nil})
  181. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  182. beego.ControllerComments{
  183. Method: "Login",
  184. Router: `/login`,
  185. AllowHTTPMethods: []string{"post"},
  186. MethodParams: param.Make(),
  187. Filters: nil,
  188. Params: nil})
  189. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  190. beego.ControllerComments{
  191. Method: "Notice",
  192. Router: `/notice`,
  193. AllowHTTPMethods: []string{"get"},
  194. MethodParams: param.Make(),
  195. Filters: nil,
  196. Params: nil})
  197. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  198. beego.ControllerComments{
  199. Method: "RefreshToken",
  200. Router: `/refreshToken`,
  201. AllowHTTPMethods: []string{"get"},
  202. MethodParams: param.Make(
  203. param.New("code"),
  204. ),
  205. Filters: nil,
  206. Params: nil})
  207. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  208. beego.ControllerComments{
  209. Method: "SMSCode",
  210. Router: `/sendCode`,
  211. AllowHTTPMethods: []string{"post"},
  212. MethodParams: param.Make(),
  213. Filters: nil,
  214. Params: nil})
  215. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:AuthController"],
  216. beego.ControllerComments{
  217. Method: "WXAppid",
  218. Router: `/wxAppid`,
  219. AllowHTTPMethods: []string{"get"},
  220. MethodParams: param.Make(),
  221. Filters: nil,
  222. Params: nil})
  223. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  224. beego.ControllerComments{
  225. Method: "Get",
  226. Router: `/`,
  227. AllowHTTPMethods: []string{"get"},
  228. MethodParams: param.Make(),
  229. Filters: nil,
  230. Params: nil})
  231. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  232. beego.ControllerComments{
  233. Method: "BindGzh",
  234. Router: `/bind_gzh`,
  235. AllowHTTPMethods: []string{"get"},
  236. MethodParams: param.Make(
  237. param.New("code"),
  238. ),
  239. Filters: nil,
  240. Params: nil})
  241. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  242. beego.ControllerComments{
  243. Method: "Feedback",
  244. Router: `/feedback`,
  245. AllowHTTPMethods: []string{"post"},
  246. MethodParams: param.Make(),
  247. Filters: nil,
  248. Params: nil})
  249. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  250. beego.ControllerComments{
  251. Method: "FollowAnalyst",
  252. Router: `/followAnalyst`,
  253. AllowHTTPMethods: []string{"post"},
  254. MethodParams: param.Make(),
  255. Filters: nil,
  256. Params: nil})
  257. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  258. beego.ControllerComments{
  259. Method: "FollowingAnalystList",
  260. Router: `/followingAnalystList`,
  261. AllowHTTPMethods: []string{"get"},
  262. MethodParams: param.Make(),
  263. Filters: nil,
  264. Params: nil})
  265. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  266. beego.ControllerComments{
  267. Method: "FollowingAnalysts",
  268. Router: `/followingAnalysts`,
  269. AllowHTTPMethods: []string{"get"},
  270. MethodParams: param.Make(
  271. param.New("analystId"),
  272. ),
  273. Filters: nil,
  274. Params: nil})
  275. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  276. beego.ControllerComments{
  277. Method: "UnReadMessageList",
  278. Router: `/message`,
  279. AllowHTTPMethods: []string{"get"},
  280. MethodParams: param.Make(),
  281. Filters: nil,
  282. Params: nil})
  283. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  284. beego.ControllerComments{
  285. Method: "Profile",
  286. Router: `/profile`,
  287. AllowHTTPMethods: []string{"get"},
  288. MethodParams: param.Make(),
  289. Filters: nil,
  290. Params: nil})
  291. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  292. beego.ControllerComments{
  293. Method: "ReadMessage",
  294. Router: `/readMessage`,
  295. AllowHTTPMethods: []string{"post"},
  296. MethodParams: param.Make(),
  297. Filters: nil,
  298. Params: nil})
  299. beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"] = append(beego.GlobalControllerRouter["eta/eta_mini_ht_api/controllers/user:UserController"],
  300. beego.ControllerComments{
  301. Method: "ReadMessages",
  302. Router: `/readMessages`,
  303. AllowHTTPMethods: []string{"post"},
  304. MethodParams: param.Make(),
  305. Filters: nil,
  306. Params: nil})
  307. }