动态menu和角色关联以及基础menu构建
This commit is contained in:
@@ -10,5 +10,10 @@ func InitMenuRouter(Router *gin.Engine) {
|
||||
MenuRouter := Router.Group("menu").Use(middleware.JWTAuth())
|
||||
{
|
||||
MenuRouter.POST("getMenu", api.GetMenu)
|
||||
MenuRouter.POST("getMenuList", api.GetMenuList)
|
||||
MenuRouter.POST("addBaseMenu", api.AddBaseMenu)
|
||||
MenuRouter.POST("getBaseMenuTree", api.GetBaseMenuTree)
|
||||
MenuRouter.POST("addMenuAuthority", api.AddMenuAuthority)
|
||||
MenuRouter.POST("getMenuAuthority", api.GetMenuAuthority)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user