月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-06-02 dc0d4a7907f3affdbc116288cac24ad4ba05f319
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.lf.server.mapper.all;
 
import com.lf.server.entity.all.MenusAuthEntity;
import com.lf.server.entity.all.PermsAuthEntity;
import com.lf.server.entity.all.ResAuthEntity;
import com.lf.server.entity.sys.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
/**
 * 授权管理
 * @author WWW
 */
@Mapper
@Repository
public interface PermsMapper {
    /**
     * 根据用户Uid查询资源授权
     *
     * @param uid
     * @return
     */
    public List<ResAuthEntity> selectRes(String uid);
 
    /**
     * 根据用户Uid查询菜单授权
     *
     * @param uid
     * @return
     */
    public List<MenusAuthEntity> selectMenus(String uid);
 
    /**
     * 根据用户Uid查询权限授权
     *
     * @param uid
     * @return
     */
    public List<String> selectPerms(String uid);
 
    /**
     * 根据用户Uid查询权限授权实体集合
     *
     * @param uid
     * @return
     */
    public List<PermsAuthEntity> selectPermsEntity(String uid);
 
    /**
     * 根据用户Uid查询角色ID
     *
     * @param uid
     * @return
     */
    public List<Integer> selectRoles(String uid);
 
    /**
     * 根据用户Uid递归查询菜单集合
     *
     * @param id
     * @param uid
     * @return
     */
    public List<MenuEntity> selectMenuRecursive(int id, String uid);
}