存在菜单子节点数量与状态
This commit is contained in:
@@ -102,9 +102,9 @@ func (r *ServiceSysMenu) SelectMenuById(menuId string) model.SysMenu {
|
||||
return model.SysMenu{}
|
||||
}
|
||||
|
||||
// HasChildByMenuId 存在菜单子节点数量
|
||||
func (r *ServiceSysMenu) HasChildByMenuId(menuId string) int64 {
|
||||
return r.sysMenuRepository.HasChildByMenuId(menuId)
|
||||
// HasChildByMenuIdAndStatus 存在菜单子节点数量与状态
|
||||
func (r *ServiceSysMenu) HasChildByMenuIdAndStatus(menuId, status string) int64 {
|
||||
return r.sysMenuRepository.HasChildByMenuIdAndStatus(menuId, status)
|
||||
}
|
||||
|
||||
// CheckMenuExistRole 查询菜单是否存在角色
|
||||
|
||||
Reference in New Issue
Block a user