2023-07-26 03:06:05 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/pay/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/pay/payment-intent",
|
|
|
|
Handler: OrderPaymentIntentHandler(serverCtx),
|
|
|
|
},
|
2023-07-28 11:03:36 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/pay/refund",
|
|
|
|
Handler: OrderRefundHandler(serverCtx),
|
|
|
|
},
|
2023-07-26 11:23:16 +00:00
|
|
|
{
|
2023-07-28 03:15:42 +00:00
|
|
|
Method: http.MethodPost,
|
2023-07-26 11:23:16 +00:00
|
|
|
Path: "/api/pay/stripe-webhook",
|
|
|
|
Handler: StripeWebhookHandler(serverCtx),
|
|
|
|
},
|
2023-07-26 03:06:05 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|