routes.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.WithMiddlewares(
  12. []rest.Middleware{serverCtx.DataSign},
  13. []rest.Route{
  14. {
  15. Method: http.MethodGet,
  16. Path: "/working-uf/info",
  17. Handler: dtgateway.WorkingUfHandler(serverCtx),
  18. },
  19. {
  20. Method: http.MethodGet,
  21. Path: "/working-uf/cycle",
  22. Handler: dtgateway.WorkingUfByCycleHandler(serverCtx),
  23. },
  24. {
  25. Method: http.MethodGet,
  26. Path: "/working-ro/info",
  27. Handler: dtgateway.WorkingRoHandler(serverCtx),
  28. },
  29. {
  30. Method: http.MethodGet,
  31. Path: "/working-chest/info",
  32. Handler: dtgateway.WorkingChestHandler(serverCtx),
  33. },
  34. {
  35. Method: http.MethodGet,
  36. Path: "/working-pump/info",
  37. Handler: dtgateway.WorkingPumpHandler(serverCtx),
  38. },
  39. {
  40. Method: http.MethodGet,
  41. Path: "/working-valve/info",
  42. Handler: dtgateway.WorkingValveHandler(serverCtx),
  43. },
  44. {
  45. Method: http.MethodPost,
  46. Path: "/item-history/multi-add",
  47. Handler: dtgateway.ItemHistoryDataMultiAddHandler(serverCtx),
  48. },
  49. {
  50. Method: http.MethodGet,
  51. Path: "/item-history/list",
  52. Handler: dtgateway.ItemHistoryDataListHandler(serverCtx),
  53. },
  54. {
  55. Method: http.MethodGet,
  56. Path: "/item-history/info",
  57. Handler: dtgateway.ItemHistoryDataInfoHandler(serverCtx),
  58. },
  59. {
  60. Method: http.MethodGet,
  61. Path: "/item-history/max-min",
  62. Handler: dtgateway.ItemHistoryDataMaxMinHandler(serverCtx),
  63. },
  64. {
  65. Method: http.MethodGet,
  66. Path: "/item-history/first-last",
  67. Handler: dtgateway.ItemHistoryDataFirstLastHandler(serverCtx),
  68. },
  69. {
  70. Method: http.MethodGet,
  71. Path: "/item-change/info",
  72. Handler: dtgateway.ChangeTypeItemDataHandler(serverCtx),
  73. },
  74. }...,
  75. ),
  76. rest.WithPrefix("/api/dtgateway/v1"),
  77. )
  78. }