wang-hao-jie
2022-06-06 4e837c1e8c6f8a7252fb95776a1530ab737bb684
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
package cn.exrick.xboot.core.common.annotation;
 
import cn.exrick.xboot.core.common.enums.LogType;
 
import java.lang.annotation.*;
 
/**
 * 系统日志自定义注解
 * @author Exrickx
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})//作用于参数或方法上
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SystemLog {
 
    /**
     * 日志名称
     * @return
     */
    String description() default "";
 
    /**
     * 日志类型
     * @return
     */
    LogType type() default LogType.OPERATION;
}