管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-10-24 403da64eae0a1357d80b6ce44391af1f11b835a3
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
package com.lf.server.service.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.helper.StringHelper;
import com.lf.server.mapper.all.PermsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 授权服务
 * @author WWW
 */
@Service
public class PermsService implements PermsMapper {
    @Autowired
    PermsMapper permsMapper;
 
    @Override
    public List<ResAuthEntity> selectRes(String uid) {
        if (StringHelper.isEmpty(uid)) {
            return null;
        }
 
        return permsMapper.selectRes(uid);
    }
 
    @Override
    public List<MenusAuthEntity> selectMenus(String uid) {
        if (StringHelper.isEmpty(uid)) {
            return null;
        }
 
        return permsMapper.selectMenus(uid);
    }
 
    @Override
    public List<PermsAuthEntity> selectPerms(String uid) {
        if (StringHelper.isEmpty(uid)) {
            return null;
        }
 
        return permsMapper.selectPerms(uid);
    }
 
    @Override
    public List<String> selectPerms2(String uid) {
        if (StringHelper.isEmpty(uid)) {
            return null;
        }
 
        return permsMapper.selectPerms2(uid);
    }
}