1
This commit is contained in:
parent
a5c700416c
commit
d3f6c8945d
@ -2,6 +2,7 @@ package system
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"f5"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserApi struct{
|
type UserApi struct{
|
||||||
|
@ -2,14 +2,18 @@ package router
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"f5"
|
"f5"
|
||||||
|
. "main/global"
|
||||||
|
"main/router/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
type routerMgr struct {
|
type routerMgr struct {
|
||||||
|
system system.RouterGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (this* routerMgr) Init() {
|
func (this* routerMgr) Init() {
|
||||||
|
router := GetApp().GetGin().Group("api/v1")
|
||||||
|
this.system.InitUserRouter(router)
|
||||||
f5.GetSysLog().Info("routerMgr.init")
|
f5.GetSysLog().Info("routerMgr.init")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package system
|
package system
|
||||||
|
|
||||||
type RouterGroup struct {
|
type RouterGroup struct {
|
||||||
|
UserRouter
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user