feat(backend): 购买单取消透传 pay v2 cancel

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-10 22:40:44 +08:00
parent f00f453d6f
commit 7e5a697f28
4 changed files with 168 additions and 0 deletions
+1
View File
@@ -122,6 +122,7 @@ func Setup(r *gin.Engine, db *gorm.DB) {
// 在线购买/续费(走 pay 收款中枢;仅管理员,handler 内判权)
license.POST("/purchase", payH.Purchase)
license.GET("/purchase/:out_trade_no", payH.PurchaseStatus)
license.POST("/purchase/:out_trade_no/cancel", payH.Cancel)
license.GET("/promo-status", payH.PromoStatus)
}