1
This commit is contained in:
parent
53a02b38c9
commit
a9072e731a
5
server/marketserver/router/activity/enter.go
Normal file
5
server/marketserver/router/activity/enter.go
Normal file
@ -0,0 +1,5 @@
|
||||
package activity
|
||||
|
||||
type RouterGroup struct {
|
||||
StackingRouter
|
||||
}
|
14
server/marketserver/router/activity/stacking.go
Normal file
14
server/marketserver/router/activity/stacking.go
Normal file
@ -0,0 +1,14 @@
|
||||
package activity
|
||||
|
||||
import (
|
||||
"f5"
|
||||
"main/api/v1"
|
||||
)
|
||||
|
||||
type StackingRouter struct{}
|
||||
|
||||
func (this *StackingRouter) InitRouter() {
|
||||
api := v1.ApiGroupApp.ActivityApiGroup
|
||||
f5.GetApp().GetGinEngine().GET("/api/activity/stacking/expected_daily/:account_address",
|
||||
api.StackingApi.ExpectedDaily)
|
||||
}
|
5
server/marketserver/router/user/enter.go
Normal file
5
server/marketserver/router/user/enter.go
Normal file
@ -0,0 +1,5 @@
|
||||
package user
|
||||
|
||||
type RouterGroup struct {
|
||||
UserRouter
|
||||
}
|
13
server/marketserver/router/user/user.go
Normal file
13
server/marketserver/router/user/user.go
Normal file
@ -0,0 +1,13 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"f5"
|
||||
"main/api/v1"
|
||||
)
|
||||
|
||||
type UserRouter struct{}
|
||||
|
||||
func (this *UserRouter) InitRouter() {
|
||||
api := v1.ApiGroupApp.UserApiGroup
|
||||
f5.GetApp().GetGinEngine().GET("/api/user/:account_address", api.UserApi.Info)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user