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

38 lines
788 B
Go
Raw Normal View History

2024-06-18 18:14:57 +08:00
// 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),
},
2024-07-09 18:19:52 +08:00
{
// 荣数回调
Method: http.MethodPost,
Path: "/notify/coupon",
Handler: transfer.NotifyCouponHandler(serverCtx),
},
{
// 荣数回调
Method: http.MethodPost,
Path: "/notify/grant",
Handler: transfer.NotifyGrantHandler(serverCtx),
},
2024-06-18 18:14:57 +08:00
},
rest.WithPrefix("/cross/v1"),
)
}