feat(pay-v2): P8 Task3 订阅创建 + 首期激活(subscription.created)+ 端点

This commit is contained in:
wangjia
2026-07-10 17:59:35 +08:00
parent 83e3551609
commit 4c242607a7
12 changed files with 411 additions and 11 deletions
+1
View File
@@ -45,6 +45,7 @@ func SetupV2(r *gin.Engine, g *gateway.Gateway) {
v2 := r.Group("/api/v2")
{
v2.POST("/orders", h.CreateOrder)
v2.POST("/subscriptions", h.CreateSubscription)
v2.GET("/orders/:order_no", h.GetStatus)
v2.POST("/orders/:order_no/retry", h.Retry)
v2.POST("/orders/:order_no/cancel", h.Cancel)