Log.java 836 B

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