Feat: vas redeem

This commit is contained in:
HFO4
2020-02-17 10:26:31 +08:00
parent ca0f244109
commit 41f9f3497f
7 changed files with 249 additions and 87 deletions

View File

@@ -363,6 +363,10 @@ func InitMasterRouter() *gin.Engine {
vas.GET("product", controllers.GetProduct)
// 新建支付订单
vas.POST("order", controllers.NewOrder)
// 获取兑换码信息
vas.GET("redeem/:code", controllers.GetRedeemInfo)
// 执行兑换
vas.POST("redeem/:code", controllers.DoRedeem)
}
}