|
@@ -4,8 +4,8 @@ package handler
|
|
import (
|
|
import (
|
|
"net/http"
|
|
"net/http"
|
|
|
|
|
|
- datacenter "GtDataStore/app/cmd/api/internal/handler/datacenter"
|
|
|
|
- "GtDataStore/app/cmd/api/internal/svc"
|
|
|
|
|
|
+ dtgateway "GtDataStore/app/cmd/dtgateway/internal/handler/dtgateway"
|
|
|
|
+ "GtDataStore/app/cmd/dtgateway/internal/svc"
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
"github.com/zeromicro/go-zero/rest"
|
|
)
|
|
)
|
|
@@ -16,44 +16,44 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
{
|
|
{
|
|
Method: http.MethodGet,
|
|
Method: http.MethodGet,
|
|
Path: "/working-uf/info",
|
|
Path: "/working-uf/info",
|
|
- Handler: datacenter.WorkingUfHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.WorkingUfHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodGet,
|
|
Method: http.MethodGet,
|
|
Path: "/working-ro/info",
|
|
Path: "/working-ro/info",
|
|
- Handler: datacenter.WorkingRoHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.WorkingRoHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodGet,
|
|
Method: http.MethodGet,
|
|
Path: "/working-chest/info",
|
|
Path: "/working-chest/info",
|
|
- Handler: datacenter.WorkingChestHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.WorkingChestHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodGet,
|
|
Method: http.MethodGet,
|
|
Path: "/working-pump/info",
|
|
Path: "/working-pump/info",
|
|
- Handler: datacenter.WorkingPumpHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.WorkingPumpHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodGet,
|
|
Method: http.MethodGet,
|
|
Path: "/working-valve/info",
|
|
Path: "/working-valve/info",
|
|
- Handler: datacenter.WorkingValveHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.WorkingValveHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodPost,
|
|
Method: http.MethodPost,
|
|
Path: "/item-history/multi-add",
|
|
Path: "/item-history/multi-add",
|
|
- Handler: datacenter.ItemHistoryDataHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.ItemHistoryDataHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodPost,
|
|
Method: http.MethodPost,
|
|
Path: "/item-history/list",
|
|
Path: "/item-history/list",
|
|
- Handler: datacenter.ItemHistoryDataListHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.ItemHistoryDataListHandler(serverCtx),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
Method: http.MethodPost,
|
|
Method: http.MethodPost,
|
|
Path: "/item-history/info",
|
|
Path: "/item-history/info",
|
|
- Handler: datacenter.ItemHistoryDataInfoHandler(serverCtx),
|
|
|
|
|
|
+ Handler: dtgateway.ItemHistoryDataInfoHandler(serverCtx),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- rest.WithPrefix("/api/datacenter/v1"),
|
|
|
|
|
|
+ rest.WithPrefix("/api/dtgateway/v1"),
|
|
)
|
|
)
|
|
}
|
|
}
|