routes.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. Method: http.MethodPost,
  39. Path: "/item-history/multi-add",
  40. Handler: datacenter.ItemHistoryDataHandler(serverCtx),
  41. },
  42. },
  43. rest.WithPrefix("/api/datacenter/v1"),
  44. )
  45. }