SysSensitiveServiceImpl.java 525 B

1234567891011121314151617181920212223242526
  1. package com.ruoyi.system.service.impl;
  2. import com.ruoyi.common.core.service.SensitiveService;
  3. import com.ruoyi.common.helper.LoginHelper;
  4. import org.springframework.stereotype.Service;
  5. /**
  6. * 脱敏服务
  7. * 默认管理员不过滤
  8. * 需自行根据业务重写实现
  9. *
  10. * @author Lion Li
  11. * @version 3.6.0
  12. */
  13. @Service
  14. public class SysSensitiveServiceImpl implements SensitiveService {
  15. /**
  16. * 是否脱敏
  17. */
  18. @Override
  19. public boolean isSensitive() {
  20. return LoginHelper.isAdmin();
  21. }
  22. }