29 lines
561 B
Go
29 lines
561 B
Go
|
// 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"),
|
||
|
)
|
||
|
}
|