| 123456789101112131415161718192021222324252627 |
- package com.ruoyi.system.service.impl;
- import com.ruoyi.common.core.service.SensitiveService;
- import com.ruoyi.common.helper.LoginHelper;
- import com.ruoyi.common.utils.SecurityUtils;
- import org.springframework.stereotype.Service;
- /**
- * 脱敏服务
- * 默认管理员不过滤
- * 需自行根据业务重写实现
- *
- * @author Lion Li
- * @version 3.6.0
- */
- @Service
- public class SysSensitiveServiceImpl implements SensitiveService {
- /**
- * 是否脱敏
- */
- @Override
- public boolean isSensitive() {
- return SecurityUtils.isAdmin(LoginHelper.getUserId());
- }
- }
|