6
jinlin
2023-12-03 c8d8a511f45c96ed3a5123a88e48de2ffdbf632a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
 * 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);
}