2020-07-19 10:25:40 +08:00
|
|
|
package com.ruoyi.common.annotation;
|
2019-10-08 09:14:38 +08:00
|
|
|
|
|
|
|
import java.lang.annotation.Documented;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
2020-07-19 10:25:40 +08:00
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.enums.OperatorType;
|
2019-10-08 09:14:38 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 自定义操作日志记录注解
|
|
|
|
*
|
|
|
|
* @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 boolean isSaveRequestData() default true;
|
|
|
|
}
|