暂存提交
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.baiyue.common.audit;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 业务审计方法注解,声明事件类型、资源标识、描述以及是否采集变更前后数据。
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface BusinessAudit {
|
||||
String event();
|
||||
String resourceType();
|
||||
String resourceId() default ""; // SpEL, e.g. #request.orderId
|
||||
String description() default "";
|
||||
boolean captureBefore() default true;
|
||||
boolean captureAfter() default true;
|
||||
}
|
||||
Reference in New Issue
Block a user