All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zznote.basecommon.common.annotation.Log Maven / Gradle / Ivy

The newest version!
package com.zznote.basecommon.common.annotation;


import com.zznote.basecommon.common.enums.BusinessType;
import com.zznote.basecommon.common.enums.OperatorType;

import java.lang.annotation.*;

/**
 * 注解方式调用aop
 * @Author: zhangzhen
 * @Date: create in 2022/4/11 12:07 下午
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
    /**
     * 模块
     */
    String title() default "";

    /**
     * 功能
     */
    BusinessType businessType() default BusinessType.OTHER;

    /**
     * 操作人类别
     */
    OperatorType operatorType() default OperatorType.MANAGE;

    /**
     * 是否保存请求的参数
     */
    boolean isSaveRequestData() default true;

    /**
     * 是否保存响应的参数
     */
    boolean isSaveResponseData() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy