Commit 82665a43 by wangzhen

Refactor the classes of the RBAC to PermissionService.

1 parent 58a94d84
......@@ -31,13 +31,15 @@ public class DataGridMaskAspect {
private static final String COLUMNS_ID = "id";
private final PermissionService permissionService;
private ProceedingJoinPoint joinPoint;
public DataGridMaskAspect(PermissionService permissionService) {
this.permissionService = permissionService;
}
@Around("@annotation(org.springframework.web.bind.annotation.GetMapping)")
public Object doMaskData(ProceedingJoinPoint joinPoint) throws Throwable {
public Object maskData(ProceedingJoinPoint joinPoint) throws Throwable {
this.joinPoint = joinPoint;
Object result = joinPoint.proceed();
// 仅处理Result类型,来源与ResponseBodyAdvice处理之后的结果
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!