Commit 58a94d84 by wangzhen

Refactor the classes of the RBAC to PermissionService.

1 parent 2bf04c57
......@@ -37,7 +37,7 @@ public class DataGridMaskAspect {
}
@Around("@annotation(org.springframework.web.bind.annotation.GetMapping)")
public Object maskData(ProceedingJoinPoint joinPoint) throws Throwable {
public Object doMaskData(ProceedingJoinPoint joinPoint) throws Throwable {
Object result = joinPoint.proceed();
// 仅处理Result类型,来源与ResponseBodyAdvice处理之后的结果
......@@ -63,7 +63,7 @@ public class DataGridMaskAspect {
}
// 更具角色控制DataGrid列的显示
maskData(dg.value(), data);
doMaskData(dg.value(), data);
return result;
}
......@@ -80,7 +80,7 @@ public class DataGridMaskAspect {
return data.get(0).getClass();
}
private void maskData(String dgKey, List<?> data) {
private void doMaskData(String dgKey, List<?> data) {
// 获取当前激活角色,激活的角色只能有一个
Long role = permissionService.getActiveRole();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!