12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package com.doc.common.annotation;
- import com.doc.common.enums.BusinessType;
- import com.doc.common.enums.EventLevel;
- import com.doc.common.enums.EventType;
- import com.doc.common.enums.OperatorType;
- import java.lang.annotation.*;
- /**
- * 自定义操作日志记录注解
- *
- * @author ruoyi
- */
- @Target({ElementType.PARAMETER, ElementType.METHOD})
- @Retention(RetentionPolicy.RUNTIME)
- @Documented
- public @interface Log {
- /**
- * 模块
- */
- public String title() default "";
- /**
- * 功能
- */
- public BusinessType businessType() default BusinessType.OTHER;
- /**
- * 操作人类别
- */
- public OperatorType operatorType() default OperatorType.MANAGE;
- /**
- * 事件类型
- */
- public EventType eventType() default EventType.BUSINESS;
- /**
- * 事件类型
- */
- public EventLevel eventLevel() default EventLevel.LOW;
- /**
- * 是否保存请求的参数
- */
- public boolean isSaveRequestData() default true;
- /**
- * 是否保存响应的参数
- */
- public boolean isSaveResponseData() default true;
- /**
- * 排除指定的请求参数
- */
- public String[] excludeParamNames() default {};
- }
|