2020-07-20 10:41:32 +08:00
|
|
|
package com.ruoyi.common.annotation;
|
2020-02-13 10:48:51 +08:00
|
|
|
|
2020-07-20 10:41:32 +08:00
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.enums.OperatorType;
|
2020-02-13 10:48:51 +08:00
|
|
|
|
2021-10-22 10:04:15 +08:00
|
|
|
import java.lang.annotation.*;
|
|
|
|
|
2020-02-13 10:48:51 +08:00
|
|
|
/**
|
|
|
|
* 自定义操作日志记录注解
|
|
|
|
*
|
2021-10-22 10:04:15 +08:00
|
|
|
* @author ruoyi
|
2020-02-13 10:48:51 +08:00
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
@Target({ElementType.PARAMETER, ElementType.METHOD})
|
2020-02-13 10:48:51 +08:00
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Documented
|
2021-10-22 10:04:15 +08:00
|
|
|
public @interface Log {
|
2020-02-13 10:48:51 +08:00
|
|
|
/**
|
2021-10-22 10:04:15 +08:00
|
|
|
* 模块
|
2020-02-13 10:48:51 +08:00
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
String title() default "";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 功能
|
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
BusinessType businessType() default BusinessType.OTHER;
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 操作人类别
|
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
OperatorType operatorType() default OperatorType.MANAGE;
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否保存请求的参数
|
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
boolean isSaveRequestData() default true;
|
2021-09-17 11:12:43 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否保存响应的参数
|
|
|
|
*/
|
2021-10-22 10:04:15 +08:00
|
|
|
boolean isSaveResponseData() default true;
|
2020-02-13 10:48:51 +08:00
|
|
|
}
|