routes.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/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/byPushHistory",
  14. Handler: ByPushHistoryHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodPost,
  18. Path: "/jybx/subscribe/:userType/distributor",
  19. Handler: distributorHandler(serverCtx),
  20. },
  21. {
  22. Method: http.MethodPost,
  23. Path: "/jybx/subscribe/:userType/getKey",
  24. Handler: getKeyHandler(serverCtx),
  25. },
  26. {
  27. Method: http.MethodPost,
  28. Path: "/jybx/subscribe/:userType/list",
  29. Handler: subscribeListHandler(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/someInfo",
  39. Handler: someInfoHandler(serverCtx),
  40. },
  41. {
  42. Method: http.MethodPost,
  43. Path: "/jybx/subscribe/:userType/update",
  44. Handler: subscribeUpdateHandler(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/bidDistributor",
  54. Handler: bidDistributorHandler(serverCtx),
  55. },
  56. {
  57. Method: http.MethodPost,
  58. Path: "/jybx/subscribe/getPushSet",
  59. Handler: getPushSetHandler(serverCtx),
  60. },
  61. {
  62. Method: http.MethodPost,
  63. Path: "/jybx/subscribe/getRecList",
  64. Handler: bidRecListHandler(serverCtx),
  65. },
  66. {
  67. Method: http.MethodPost,
  68. Path: "/jybx/subscribe/getStaffSubscribe",
  69. Handler: getStaffSubscribeListHandler(serverCtx),
  70. },
  71. {
  72. Method: http.MethodPost,
  73. Path: "/jybx/subscribe/getStaffSubscribeDetail",
  74. Handler: getStaffSubscribeDetailHandler(serverCtx),
  75. },
  76. {
  77. Method: http.MethodPost,
  78. Path: "/jybx/subscribe/getUser",
  79. Handler: getUserHandler(serverCtx),
  80. },
  81. {
  82. Method: http.MethodPost,
  83. Path: "/jybx/subscribe/msgDistributor",
  84. Handler: msgDistributorHandler(serverCtx),
  85. },
  86. {
  87. Method: http.MethodPost,
  88. Path: "/jybx/subscribe/setPushSet",
  89. Handler: setPushSetHandler(serverCtx),
  90. },
  91. {
  92. Method: http.MethodPost,
  93. Path: "/jybx/subscribe/setUser",
  94. Handler: setUserHandler(serverCtx),
  95. },
  96. },
  97. )
  98. }