12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- datacenter "GtDataStore/app/cmd/api/internal/handler/datacenter"
- "GtDataStore/app/cmd/api/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: datacenter.WorkingUfHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-ro/info",
- Handler: datacenter.WorkingRoHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-chest/info",
- Handler: datacenter.WorkingChestHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-pump/info",
- Handler: datacenter.WorkingPumpHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/working-valve/info",
- Handler: datacenter.WorkingValveHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/item-history/multi-add",
- Handler: datacenter.ItemHistoryDataHandler(serverCtx),
- },
- },
- rest.WithPrefix("/api/datacenter/v1"),
- )
- }
|