routes.go 681 B

1234567891011121314151617181920212223242526272829303132
  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. )
  28. }