张天森
2022-09-29 f683cb669aba8f7c5d4c5fa14cef35f0d5b09328
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/interfaces/OperLog.java
@@ -1,19 +1,20 @@
package com.panzhihua.common.interfaces;
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;
import java.lang.annotation.*;
/**
 * 自定义操作日志注解
 *
 * @author wu
 */
@Target(ElementType.METHOD) //注解放置的目标位置,METHOD是可注解在方法级别上
@Retention(RetentionPolicy.RUNTIME) //注解在哪个阶段执行
@Target(ElementType.METHOD) // 注解放置的目标位置,METHOD是可注解在方法级别上
@Retention(RetentionPolicy.RUNTIME) // 注解在哪个阶段执行
@Documented
public @interface OperLog {
    String operModul() default ""; // 操作模块
    int operType() default 0;  // 操作类型 业务类型(0其它 1新增 2修改 3删除)
    int operType() default 0; // 操作类型 业务类型(0其它 1新增 2修改 3删除)
    String businessType() default ""; //操作类型
}