123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- dtgateway "GtDataStore/app/cmd/dtgateway/internal/handler/dtgateway"
- "GtDataStore/app/cmd/dtgateway/internal/svc"
- "github.com/zeromicro/go-zero/rest"
- )
- func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
- server.AddRoutes(
- rest.WithMiddlewares(
- []rest.Middleware{serverCtx.DataSign},
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/working-uf/info",
- Handler: dtgateway.WorkingUfHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-ro/info",
- Handler: dtgateway.WorkingRoHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-chest/info",
- Handler: dtgateway.WorkingChestHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-pump/info",
- Handler: dtgateway.WorkingPumpHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-valve/info",
- Handler: dtgateway.WorkingValveHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/item-history/multi-add",
- Handler: dtgateway.ItemHistoryDataMultiAddHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/item-history/list",
- Handler: dtgateway.ItemHistoryDataListHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/item-history/info",
- Handler: dtgateway.ItemHistoryDataInfoHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/item-history/max-min",
- Handler: dtgateway.ItemHistoryDataMaxMinHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/item-history/first-last",
- Handler: dtgateway.ItemHistoryDataFirstLastHandler(serverCtx),
- },
- }...,
- ),
- rest.WithPrefix("/api/dtgateway/v1"),
- )
- }
|