fix 修复 脱敏没有实现类导致返回数据异常问题
parent
832b9c438d
commit
1eec8f570f
@ -0,0 +1,25 @@
|
|||||||
|
package com.ruoyi.demo.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.service.SensitiveService;
|
||||||
|
import com.ruoyi.common.satoken.utils.LoginHelper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 脱敏服务
|
||||||
|
* 默认管理员不过滤
|
||||||
|
* 需自行根据业务重写实现
|
||||||
|
*
|
||||||
|
* @author Lion Li
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SensitiveServiceImpl implements SensitiveService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否脱敏
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean isSensitive() {
|
||||||
|
return !LoginHelper.isAdmin();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue