This commit is contained in:
2026-01-16 17:01:36 +08:00
parent 23ad0477b2
commit 663ad1af0d
8 changed files with 600 additions and 0 deletions

View File

@@ -786,6 +786,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/pay/wechat/refund_callback",
Handler: pay.WechatPayRefundCallbackHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/pay/yunyinsign/callback",
Handler: pay.YunYinSignPayCallbackHandler(serverCtx),
},
},
rest.WithPrefix("/api/v1"),
)
@@ -809,6 +814,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/pay/payment",
Handler: pay.PaymentHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/pay/yunyinsign/refund",
Handler: pay.YunYinSignPayRefundHandler(serverCtx),
},
}...,
),
rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),