transfer_yl/cmd/api/internal/handler/routes.go

29 lines
561 B
Go
Raw Normal View History

2024-07-16 16:51:39 +08:00
// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
yl "rs/cmd/api/internal/handler/yl"
"rs/cmd/api/internal/svc"
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
rest.WithMiddlewares(
[]rest.Middleware{serverCtx.SignMiddleware},
[]rest.Route{
{
// 卡密同步发放接口
Method: http.MethodPost,
Path: "/key/send",
Handler: yl.YlHandler(serverCtx),
},
}...,
),
rest.WithPrefix("/market"),
)
}