Feat: vas for group / storage pack

This commit is contained in:
HFO4
2020-02-16 14:31:23 +08:00
parent faf46745bc
commit e38a60ea44
11 changed files with 504 additions and 12 deletions

View File

@@ -354,6 +354,17 @@ func InitMasterRouter() *gin.Engine {
tag.DELETE(":id", middleware.HashID(hashid.TagID), controllers.DeleteTag)
}
// 增值服务相关
vas := auth.Group("vas")
{
// 获取容量包及配额信息
vas.GET("pack", controllers.GetQuota)
// 获取商品信息,同时返回支付信息
vas.GET("product", controllers.GetProduct)
// 新建支付订单
vas.POST("order", controllers.NewOrder)
}
}
}