1
This commit is contained in:
parent
7f9f9bc9db
commit
61f3bd7c67
@ -40,7 +40,7 @@ func (ea *RechargeApi) RechargeList(c *gin.Context) {
|
||||
c.JSON(200, rspObj)
|
||||
}
|
||||
|
||||
func (this *RechargeApi) Pay(c *gin.Context) {
|
||||
func (this *RechargeApi) Buy(c *gin.Context) {
|
||||
reqJson := struct {
|
||||
NetId int32 `json:"net_id"`
|
||||
GoodsId string `json:"goods_id"`
|
||||
|
@ -12,5 +12,5 @@ func (er *RechargeRouter) InitRouter() {
|
||||
api := v1.ApiGroupApp.RechargeApiGroup
|
||||
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/pay", middleware.JwtAuth, api.RechargeApi.Pay)
|
||||
f5.GetApp().GetGinEngine().POST("/api/recharge/buy", middleware.JwtAuth, api.RechargeApi.Buy)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user