调整
This commit is contained in:
parent
bf9d9c4d62
commit
7f9f9bc9db
@ -2,15 +2,15 @@ package recharge
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"f5"
|
"f5"
|
||||||
"main/middleware"
|
|
||||||
v1 "main/api/v1"
|
v1 "main/api/v1"
|
||||||
|
"main/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RechargeRouter struct{}
|
type RechargeRouter struct{}
|
||||||
|
|
||||||
func (er *RechargeRouter) InitRouter() {
|
func (er *RechargeRouter) InitRouter() {
|
||||||
api := v1.ApiGroupApp.RechargeApiGroup
|
api := v1.ApiGroupApp.RechargeApiGroup
|
||||||
f5.GetApp().GetGinEngine().GET("/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/pay", middleware.JwtAuth, api.RechargeApi.Pay)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user