调整前端样式,调整日志记录路由组,调整对应自动化模板
This commit is contained in:
@@ -11,17 +11,20 @@ type MenuRouter struct {
|
||||
|
||||
func (s *MenuRouter) InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
|
||||
menuRouter := Router.Group("menu").Use(middleware.OperationRecord())
|
||||
menuRouterWithoutRecord := Router.Group("menu")
|
||||
var authorityMenuApi = v1.ApiGroupApp.SystemApiGroup.AuthorityMenuApi
|
||||
{
|
||||
menuRouter.POST("getMenu", authorityMenuApi.GetMenu) // 获取菜单树
|
||||
menuRouter.POST("getMenuList", authorityMenuApi.GetMenuList) // 分页获取基础menu列表
|
||||
menuRouter.POST("addBaseMenu", authorityMenuApi.AddBaseMenu) // 新增菜单
|
||||
menuRouter.POST("getBaseMenuTree", authorityMenuApi.GetBaseMenuTree) // 获取用户动态路由
|
||||
menuRouter.POST("addMenuAuthority", authorityMenuApi.AddMenuAuthority) // 增加menu和角色关联关系
|
||||
menuRouter.POST("getMenuAuthority", authorityMenuApi.GetMenuAuthority) // 获取指定角色menu
|
||||
menuRouter.POST("deleteBaseMenu", authorityMenuApi.DeleteBaseMenu) // 删除菜单
|
||||
menuRouter.POST("updateBaseMenu", authorityMenuApi.UpdateBaseMenu) // 更新菜单
|
||||
menuRouter.POST("getBaseMenuById", authorityMenuApi.GetBaseMenuById) // 根据id获取菜单
|
||||
}
|
||||
{
|
||||
menuRouterWithoutRecord.POST("getMenu", authorityMenuApi.GetMenu) // 获取菜单树
|
||||
menuRouterWithoutRecord.POST("getMenuList", authorityMenuApi.GetMenuList) // 分页获取基础menu列表
|
||||
menuRouterWithoutRecord.POST("getBaseMenuTree", authorityMenuApi.GetBaseMenuTree) // 获取用户动态路由
|
||||
menuRouterWithoutRecord.POST("getMenuAuthority", authorityMenuApi.GetMenuAuthority) // 获取指定角色menu
|
||||
menuRouterWithoutRecord.POST("getBaseMenuById", authorityMenuApi.GetBaseMenuById) // 根据id获取菜单
|
||||
}
|
||||
return menuRouter
|
||||
}
|
||||
|
Reference in New Issue
Block a user