This commit is contained in:
aozhiwei 2024-08-01 19:17:04 +08:00
parent 7f9f9bc9db
commit 61f3bd7c67
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
c.JSON(200, rspObj) c.JSON(200, rspObj)
} }
func (this *RechargeApi) Pay(c *gin.Context) { func (this *RechargeApi) Buy(c *gin.Context) {
reqJson := struct { reqJson := struct {
NetId int32 `json:"net_id"` NetId int32 `json:"net_id"`
GoodsId string `json:"goods_id"` GoodsId string `json:"goods_id"`

View File

@ -12,5 +12,5 @@ func (er *RechargeRouter) InitRouter() {
api := v1.ApiGroupApp.RechargeApiGroup api := v1.ApiGroupApp.RechargeApiGroup
f5.GetApp().GetGinEngine().POST("/api/recharge/history/:net_id/:account_address", api.RechargeApi.RechargeQuery) 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().GET("/api/recharge/goods", api.RechargeApi.RechargeList)
f5.GetApp().GetGinEngine().POST("/api/recharge/pay", middleware.JwtAuth, api.RechargeApi.Pay) f5.GetApp().GetGinEngine().POST("/api/recharge/buy", middleware.JwtAuth, api.RechargeApi.Buy)
} }