routes.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. dtgateway "GtDataStore/app/cmd/dtgateway/internal/handler/dtgateway"
  6. "GtDataStore/app/cmd/dtgateway/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: dtgateway.WorkingUfHandler(serverCtx),
  16. },
  17. {
  18. Method: http.MethodGet,
  19. Path: "/working-ro/info",
  20. Handler: dtgateway.WorkingRoHandler(serverCtx),
  21. },
  22. {
  23. Method: http.MethodGet,
  24. Path: "/working-chest/info",
  25. Handler: dtgateway.WorkingChestHandler(serverCtx),
  26. },
  27. {
  28. Method: http.MethodGet,
  29. Path: "/working-pump/info",
  30. Handler: dtgateway.WorkingPumpHandler(serverCtx),
  31. },
  32. {
  33. Method: http.MethodGet,
  34. Path: "/working-valve/info",
  35. Handler: dtgateway.WorkingValveHandler(serverCtx),
  36. },
  37. {
  38. Method: http.MethodPost,
  39. Path: "/item-history/multi-add",
  40. Handler: dtgateway.ItemHistoryDataMultiAddHandler(serverCtx),
  41. },
  42. {
  43. Method: http.MethodPost,
  44. Path: "/item-history/list",
  45. Handler: dtgateway.ItemHistoryDataListHandler(serverCtx),
  46. },
  47. {
  48. Method: http.MethodPost,
  49. Path: "/item-history/info",
  50. Handler: dtgateway.ItemHistoryDataInfoHandler(serverCtx),
  51. },
  52. {
  53. Method: http.MethodGet,
  54. Path: "/item-history/max-min",
  55. Handler: dtgateway.ItemHistoryDataMaxMinHandler(serverCtx),
  56. },
  57. },
  58. rest.WithPrefix("/api/dtgateway/v1"),
  59. )
  60. }