routes.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "app.yhyue.com/moapp/jyMarketing/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.MethodGet,
  13. Path: "/activityLottery",
  14. Handler: activityLotteryCheckHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodGet,
  18. Path: "/userLottery",
  19. Handler: userLotteryCheckHandler(serverCtx),
  20. },
  21. {
  22. Method: http.MethodPost,
  23. Path: "/lotteryReceive",
  24. Handler: lotteryReceiveCheckHandler(serverCtx),
  25. },
  26. {
  27. Method: http.MethodPost,
  28. Path: "/lotteryStateChange",
  29. Handler: lotteryStateChangeCheckHandler(serverCtx),
  30. },
  31. {
  32. Method: http.MethodPost,
  33. Path: "/activityUse",
  34. Handler: activityUseCheckHandler(serverCtx),
  35. },
  36. {
  37. Method: http.MethodGet,
  38. Path: "/lotteryInfo",
  39. Handler: lotteryInfoCheckHandler(serverCtx),
  40. },
  41. {
  42. Method: http.MethodGet,
  43. Path: "/giveInfo",
  44. Handler: giveInfoCheckHandler(serverCtx),
  45. },
  46. {
  47. Method: http.MethodPost,
  48. Path: "/advertisingClick",
  49. Handler: advertisingClickHandler(serverCtx),
  50. },
  51. {
  52. Method: http.MethodPost,
  53. Path: "/advertisingExposure",
  54. Handler: advertisingExposureHandler(serverCtx),
  55. },
  56. {
  57. Method: http.MethodGet,
  58. Path: "/findUserLotteryId",
  59. Handler: findUserLotteryIdHandler(serverCtx),
  60. },
  61. {
  62. Method: http.MethodPost,
  63. Path: "/lotteryGrant",
  64. Handler: lotteryGrantHandler(serverCtx),
  65. },
  66. {
  67. Method: http.MethodPost,
  68. Path: "/lotteryGet",
  69. Handler: lotteryGetHandler(serverCtx),
  70. },
  71. {
  72. Method: http.MethodPost,
  73. Path: "/giveActivity",
  74. Handler: giveActivityHandler(serverCtx),
  75. },
  76. {
  77. Method: http.MethodPost,
  78. Path: "/getAllActivity",
  79. Handler: getAllActivityHandler(serverCtx),
  80. },
  81. {
  82. Method: http.MethodPost,
  83. Path: "/getCommodityList",
  84. Handler: getCommodityListHandler(serverCtx),
  85. },
  86. },
  87. )
  88. }