OperLog.java 537 B

12345678910111213141516171819202122232425
  1. package com.loan.system.annotation;
  2. import com.loan.system.domain.enums.LogEnum;
  3. import java.lang.annotation.*;
  4. @Target(ElementType.METHOD) //方法级别
  5. @Retention(RetentionPolicy.RUNTIME)
  6. @Documented
  7. public @interface OperLog {
  8. // 模块:该操作作用在的模块
  9. LogEnum operModul();
  10. // 类型:{delete,insert,update}
  11. LogEnum operType();
  12. // 描述:对该操作描述信息
  13. String operDesc();
  14. // 反射:对于更新和删除操作需要的实例
  15. String operService() default "";
  16. }