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