tianyuan-api-server/apps/api/internal/handler/routes.go
2024-10-12 20:41:55 +08:00

220 lines
5.0 KiB
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.2
package handler
import (
"net/http"
FLXG "tianyuan-api/apps/api/internal/handler/FLXG"
IVYZ "tianyuan-api/apps/api/internal/handler/IVYZ"
JRZQ "tianyuan-api/apps/api/internal/handler/JRZQ"
QYGL "tianyuan-api/apps/api/internal/handler/QYGL"
YYSY "tianyuan-api/apps/api/internal/handler/YYSY"
"tianyuan-api/apps/api/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.ApiAuthInterceptor, serverCtx.ApiMqsInterceptor},
[]rest.Route{
{
Method: http.MethodPost,
Path: "/FLXG162A",
Handler: FLXG.FLXG162AHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG3D56",
Handler: FLXG.FLXG3D56Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG54F5",
Handler: FLXG.FLXG54F5Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG5876",
Handler: FLXG.FLXG5876Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG75FE",
Handler: FLXG.FLXG75FEHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG9687",
Handler: FLXG.FLXG9687Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXG970F",
Handler: FLXG.FLXG970FHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXGC9D1",
Handler: FLXG.FLXGC9D1Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXGCA3D",
Handler: FLXG.FLXGCA3DHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/FLXGDEC7",
Handler: FLXG.FLXGDEC7Handler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.ApiAuthInterceptor, serverCtx.ApiMqsInterceptor},
[]rest.Route{
{
Method: http.MethodPost,
Path: "/IVYZ0B03",
Handler: IVYZ.IVYZ0B03Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZ2125",
Handler: IVYZ.IVYZ2125Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZ385E",
Handler: IVYZ.IVYZ385EHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZ5733",
Handler: IVYZ.IVYZ5733Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZ9363",
Handler: IVYZ.IVYZ9363Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/IVYZADEE",
Handler: IVYZ.IVYZADEEHandler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.ApiAuthInterceptor, serverCtx.ApiMqsInterceptor},
[]rest.Route{
{
Method: http.MethodPost,
Path: "/JRZQ0A03",
Handler: JRZQ.JRZQ0A03Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/JRZQ4AA8",
Handler: JRZQ.JRZQ4AA8Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/JRZQ8203",
Handler: JRZQ.JRZQ8203Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/JRZQDCBE",
Handler: JRZQ.JRZQDCBEHandler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.ApiAuthInterceptor, serverCtx.ApiMqsInterceptor},
[]rest.Route{
{
Method: http.MethodPost,
Path: "/QYGL2ACD",
Handler: QYGL.QYGL2ACDHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/QYGL45BD",
Handler: QYGL.QYGL45BDHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/QYGL6F2D",
Handler: QYGL.QYGL6F2DHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/QYGL8261",
Handler: QYGL.QYGL8261Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/QYGLB4C0",
Handler: QYGL.QYGLB4C0Handler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.ApiAuthInterceptor, serverCtx.ApiMqsInterceptor},
[]rest.Route{
{
Method: http.MethodPost,
Path: "/YYSY09CD",
Handler: YYSY.YYSY09CDHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/YYSY4B37",
Handler: YYSY.YYSY4B37Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/YYSY6F2E",
Handler: YYSY.YYSY6F2EHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/YYSYBE08",
Handler: YYSY.YYSYBE08Handler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/YYSYD50F",
Handler: YYSY.YYSYD50FHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/YYSYF7DB",
Handler: YYSY.YYSYF7DBHandler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/v1"),
)
}