/**
|
* 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<SysMenu> {
|
|
/**
|
* 查询用户拥有角色关联的菜单
|
*
|
* @param tenantId
|
* @param userId
|
*/
|
List<SysMenu> getUserMenuList(@Param("tenantId") Long tenantId, @Param("userId") Long userId);
|
List<SysMenu> getUserMenuListExcept(@Param("tenantId") Long tenantId, @Param("userId") Long userId);
|
List<SysMenu> getUserMenuListComm(@Param("defaultRole") String defaultRole);
|
|
/**
|
* 查询所有权限列表
|
*/
|
List<String> getPermissionsList();
|
|
List<SysMenu> getSystems(@Param("type") Integer type, @Param("userId") Long userId);
|
}
|