38 lines
788 B
Go
38 lines
788 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
transfer "rs/cmd/api/internal/handler/transfer"
|
|
"rs/cmd/api/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
)
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
server.AddRoutes(
|
|
[]rest.Route{
|
|
{
|
|
// 荣数立减金发放
|
|
Method: http.MethodPost,
|
|
Path: "/coupon/grant",
|
|
Handler: transfer.MarketHandler(serverCtx),
|
|
},
|
|
{
|
|
// 荣数回调
|
|
Method: http.MethodPost,
|
|
Path: "/notify/coupon",
|
|
Handler: transfer.NotifyCouponHandler(serverCtx),
|
|
},
|
|
{
|
|
// 荣数回调
|
|
Method: http.MethodPost,
|
|
Path: "/notify/grant",
|
|
Handler: transfer.NotifyGrantHandler(serverCtx),
|
|
},
|
|
},
|
|
rest.WithPrefix("/cross/v1"),
|
|
)
|
|
}
|