routes.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. datacenter "GtDataStore/app/cmd/api/internal/handler/datacenter"
  6. "GtDataStore/app/cmd/api/internal/svc"
  7. "github.com/zeromicro/go-zero/rest"
  8. )
  9. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  10. server.AddRoutes(
  11. []rest.Route{
  12. {
  13. Method: http.MethodGet,
  14. Path: "/working-uf/info",
  15. Handler: datacenter.WorkingUfHandler(serverCtx),
  16. },
  17. {
  18. Method: http.MethodGet,
  19. Path: "/working-ro/info",
  20. Handler: datacenter.WorkingRoHandler(serverCtx),
  21. },
  22. {
  23. Method: http.MethodGet,
  24. Path: "/working-chest/info",
  25. Handler: datacenter.WorkingChestHandler(serverCtx),
  26. },
  27. {
  28. Method: http.MethodGet,
  29. Path: "/working-pump/info",
  30. Handler: datacenter.WorkingPumpHandler(serverCtx),
  31. },
  32. {
  33. Method: http.MethodGet,
  34. Path: "/working-valve/info",
  35. Handler: datacenter.WorkingValveHandler(serverCtx),
  36. },
  37. },
  38. rest.WithPrefix("/api/datacenter/v1"),
  39. )
  40. }