This commit is contained in:
2024-10-15 17:19:23 +08:00
parent 8f903b457f
commit c76451788c
42 changed files with 1600 additions and 237 deletions

View File

@@ -90,13 +90,24 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: topup.AliTopUpHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/aliTopUpCallback",
Handler: topup.AliTopUpCallbackHandler(serverCtx),
Method: http.MethodGet,
Path: "/topUpList",
Handler: topup.TopListHandler(serverCtx),
},
}...,
),
rest.WithPrefix("/api/console/topupfmghnjx"),
rest.WithPrefix("/api/console/topup"),
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/aliTopUpCallback",
Handler: topup.AliTopUpCallbackHandler(serverCtx),
},
},
rest.WithPrefix("/api/console/topup"),
)
server.AddRoutes(