增加注释

This commit is contained in:
zccbbg 2023-05-21 10:51:20 +08:00
parent c79424776b
commit 6cedd28256

View file

@ -51,6 +51,14 @@ public class DataScopeAspect
*/ */
public static final String DATA_SCOPE = "dataScope"; public static final String DATA_SCOPE = "dataScope";
/**
* 拦截带有@DataScope注解的方法
* 它接收JoinPoint和DataScope对象作为参数拦截带有@DataScope注解的方法
* DataScope是一个注解类
* @param point
* @param controllerDataScope
* @throws Throwable
*/
@Before("@annotation(controllerDataScope)") @Before("@annotation(controllerDataScope)")
public void doBefore(JoinPoint point, DataScope controllerDataScope) throws Throwable public void doBefore(JoinPoint point, DataScope controllerDataScope) throws Throwable
{ {