admin
昨天 768498719683f85e5ed19c73eb3d14cdbf420df4
提交 | 用户 | 时间
e57a89 1 package com.jcdm.common.annotation;
2
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
8 import com.jcdm.common.enums.BusinessType;
9 import com.jcdm.common.enums.OperatorType;
10
11 /**
12  * 自定义操作日志记录注解
13  * 
14  * @author jc
15  *
16  */
17 @Target({ ElementType.PARAMETER, ElementType.METHOD })
18 @Retention(RetentionPolicy.RUNTIME)
19 @Documented
20 public @interface Log
21 {
22     /**
23      * 模块
24      */
25     public String title() default "";
26
27     /**
28      * 功能
29      */
30     public BusinessType businessType() default BusinessType.OTHER;
31
32     /**
33      * 操作人类别
34      */
35     public OperatorType operatorType() default OperatorType.MANAGE;
36
37     /**
38      * 是否保存请求的参数
39      */
40     public boolean isSaveRequestData() default true;
41
42     /**
43      * 是否保存响应的参数
44      */
45     public boolean isSaveResponseData() default true;
46
47     /**
48      * 排除指定的请求参数
49      */
50     public String[] excludeParamNames() default {};
51 }