疯狂的狮子Li
2022-04-15 d51d8ad8776dff6d7d2ffc9648986235e66f07a5
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
package com.ruoyi.system.service.impl;
 
import com.ruoyi.common.core.service.SensitiveService;
import com.ruoyi.common.helper.LoginHelper;
import org.springframework.stereotype.Service;
 
/**
 * 脱敏服务
 * 默认管理员不过滤
 * 需自行根据业务重写实现
 *
 * @author Lion Li
 * @version 3.6.0
 */
@Service
public class SysSensitiveServiceImpl implements SensitiveService {
 
    /**
     * 是否脱敏
     */
    @Override
    public boolean isSensitive() {
        return LoginHelper.isAdmin();
    }
 
}