/** * Copyright (c) 2018 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */ package com.zt.modules.sys.dao; import com.zt.common.dao.BaseDao; import com.zt.modules.sys.model.SysMenu; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 菜单 * * @author hehz */ @Mapper public interface SysMenuDao extends BaseDao { /** * 查询用户拥有角色关联的菜单 * * @param tenantId * @param userId */ List getUserMenuList(@Param("tenantId") Long tenantId, @Param("userId") Long userId); List getUserMenuListExcept(@Param("tenantId") Long tenantId, @Param("userId") Long userId); List getUserMenuListComm(@Param("defaultRole") String defaultRole); /** * 查询所有权限列表 */ List getPermissionsList(); List getSystems(@Param("type") Integer type, @Param("userId") Long userId); }