This commit is contained in:
aozhiwei 2024-08-13 09:48:54 +08:00
parent 934586638b
commit 4710749f3a
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,9 @@ func (this *RechargeApi) Buy(c *gin.Context) {
})
}
func (this *RechargeApi) BuyWithEmail(c *gin.Context) {
}
func (ea *RechargeApi) RechargeQuery(c *gin.Context) {
account := strings.ToLower(c.Param("account_address"))
netId := q5.ToInt64(c.Param("net_id"))

View File

@ -13,4 +13,5 @@ func (er *RechargeRouter) InitRouter() {
f5.GetApp().GetGinEngine().POST("/api/recharge/history/:net_id/:account_address", api.RechargeApi.RechargeQuery)
f5.GetApp().GetGinEngine().GET("/api/recharge/goods", api.RechargeApi.RechargeList)
f5.GetApp().GetGinEngine().POST("/api/recharge/buy", middleware.JwtAuth, api.RechargeApi.Buy)
f5.GetApp().GetGinEngine().POST("/api/recharge/buy_with_email", middleware.JwtAuth, api.RechargeApi.BuyWithEmail)
}