12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // 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.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.MethodPost,
- Path: "/item-history/list",
- Handler: dtgateway.ItemHistoryDataListHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/item-history/info",
- Handler: dtgateway.ItemHistoryDataInfoHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/item-history/max-min",
- Handler: dtgateway.ItemHistoryDataMaxMinHandler(serverCtx),
- },
- },
- rest.WithPrefix("/api/dtgateway/v1"),
- )
- }
|