46 lines
1.0 KiB
Java
Raw Normal View History

2018-10-07 14:16:47 +08:00
package com.ruoyi.common.annotation;
2018-07-09 08:44:52 +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;
2018-10-07 14:16:47 +08:00
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.enums.OperatorType;
2018-07-09 08:44:52 +08:00
/**
* 自定义操作日志记录注解
*
* @author ruoyi
*/
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log
{
2018-10-07 14:16:47 +08:00
/**
* 模块
*/
public String title() default "";
2018-07-09 08:44:52 +08:00
2018-10-07 14:16:47 +08:00
/**
* 功能
*/
public BusinessType businessType() default BusinessType.OTHER;
2018-07-09 08:44:52 +08:00
2018-10-07 14:16:47 +08:00
/**
* 操作人类别
*/
public OperatorType operatorType() default OperatorType.MANAGE;
2018-07-09 08:44:52 +08:00
2018-10-07 14:16:47 +08:00
/**
* 是否保存请求的参数
*/
public boolean isSaveRequestData() default true;
/**
* 是否保存响应的参数
*/
public boolean isSaveResponseData() default true;
2018-07-09 08:44:52 +08:00
}