routes.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "jyBXSubscribe/api/internal/svc"
  6. "github.com/zeromicro/go-zero/rest"
  7. )
  8. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  9. server.AddRoutes(
  10. []rest.Route{
  11. {
  12. Method: http.MethodPost,
  13. Path: "/jybx/subscribe/:userType/list",
  14. Handler: subscribeListHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodPost,
  18. Path: "/jybx/subscribe/:userType/someInfo",
  19. Handler: someInfoHandler(serverCtx),
  20. },
  21. {
  22. Method: http.MethodPost,
  23. Path: "/jybx/subscribe/:userType/update",
  24. Handler: subscribeUpdateHandler(serverCtx),
  25. },
  26. {
  27. Method: http.MethodPost,
  28. Path: "/jybx/subscribe/:userType/byPushHistory",
  29. Handler: ByPushHistoryHandler(serverCtx),
  30. },
  31. {
  32. Method: http.MethodPost,
  33. Path: "/jybx/subscribe/:userType/setRead",
  34. Handler: SetReadHandler(serverCtx),
  35. },
  36. {
  37. Method: http.MethodPost,
  38. Path: "/jybx/subscribe/:userType/getKey",
  39. Handler: getKeyHandler(serverCtx),
  40. },
  41. {
  42. Method: http.MethodPost,
  43. Path: "/jybx/subscribe/:userType/distributor",
  44. Handler: distributorHandler(serverCtx),
  45. },
  46. {
  47. Method: http.MethodPost,
  48. Path: "/jybx/subscribe/:userType/viewStatus",
  49. Handler: viewStatusHandler(serverCtx),
  50. },
  51. {
  52. Method: http.MethodPost,
  53. Path: "/jybx/subscribe/msgDistributor",
  54. Handler: msgDistributorHandler(serverCtx),
  55. },
  56. {
  57. Method: http.MethodPost,
  58. <<<<<<< HEAD
  59. Path: "/jybx/subscribe/deriveShow",
  60. Handler: deriveShowHandler(serverCtx),
  61. },
  62. {
  63. Method: http.MethodPost,
  64. Path: "/jybx/subscribe/deriveDel",
  65. Handler: deriveDelHandler(serverCtx),
  66. =======
  67. Path: "/jybx/subscribe/getUser",
  68. Handler: getUserHandler(serverCtx),
  69. },
  70. {
  71. Method: http.MethodPost,
  72. Path: "/jybx/subscribe/setUser",
  73. Handler: setUserHandler(serverCtx),
  74. },
  75. {
  76. Method: http.MethodPost,
  77. Path: "/jybx/subscribe/getPushSet",
  78. Handler: getPushSetHandler(serverCtx),
  79. },
  80. {
  81. Method: http.MethodPost,
  82. Path: "/jybx/subscribe/setPushSet",
  83. Handler: setPushSetHandler(serverCtx),
  84. >>>>>>> master
  85. },
  86. },
  87. )
  88. }