Log.java 903 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.dgtly.common.annotation;
  2. import java.lang.annotation.Documented;
  3. import java.lang.annotation.ElementType;
  4. import java.lang.annotation.Retention;
  5. import java.lang.annotation.RetentionPolicy;
  6. import java.lang.annotation.Target;
  7. import com.dgtly.common.enums.BusinessType;
  8. import com.dgtly.common.enums.OperatorType;
  9. /**
  10. * 自定义操作日志记录注解
  11. *
  12. * @author ruoyi
  13. */
  14. @Target({ ElementType.PARAMETER, ElementType.METHOD })
  15. @Retention(RetentionPolicy.RUNTIME)
  16. @Documented
  17. public @interface Log
  18. {
  19. /**
  20. * 模块
  21. */
  22. public String title() default "";
  23. /**
  24. * 功能
  25. */
  26. public BusinessType businessType() default BusinessType.OTHER;
  27. /**
  28. * 操作人类别
  29. */
  30. public OperatorType operatorType() default OperatorType.MANAGE;
  31. /**
  32. * 是否保存请求的参数
  33. */
  34. public boolean isSaveRequestData() default true;
  35. }