routes.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/tal-tech/go-zero/rest"
  7. )
  8. func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
  9. engine.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.MethodPost,
  43. Path: "/advertisingClick",
  44. Handler: advertisingClickHandler(serverCtx),
  45. },
  46. {
  47. Method: http.MethodPost,
  48. Path: "/advertisingExposure",
  49. Handler: advertisingExposureHandler(serverCtx),
  50. },
  51. },
  52. )
  53. }