routes.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. Method: http.MethodPost,
  44. Path: "/item-history/list",
  45. Handler: datacenter.ItemHistoryDataListHandler(serverCtx),
  46. },
  47. {
  48. Method: http.MethodPost,
  49. Path: "/item-history/info",
  50. Handler: datacenter.ItemHistoryDataInfoHandler(serverCtx),
  51. },
  52. },
  53. rest.WithPrefix("/api/datacenter/v1"),
  54. )
  55. }