mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
42 lines
784 B
Java
42 lines
784 B
Java
package com.jsowell.common.annotation;
|
|
|
|
import com.jsowell.common.enums.BusinessType;
|
|
import com.jsowell.common.enums.OperatorType;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
/**
|
|
* 自定义操作日志记录注解
|
|
*
|
|
* @author jsowell
|
|
*/
|
|
@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;
|
|
|
|
/**
|
|
* 是否保存响应的参数
|
|
*/
|
|
public boolean isSaveResponseData() default true;
|
|
}
|