ApiLog.java 800 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.mangoo.rating.recommend.annotation;
  2. import com.mangoo.rating.recommend.enums.BusinessType;
  3. import com.mangoo.rating.recommend.enums.OperatorType;
  4. import java.lang.annotation.*;
  5. /**
  6. * 自定义接口调用日志注解
  7. *
  8. * @author lsz
  9. */
  10. @Target({ ElementType.PARAMETER, ElementType.METHOD })
  11. @Retention(RetentionPolicy.RUNTIME)
  12. @Documented
  13. public @interface ApiLog {
  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.MOBILE;
  26. /**
  27. * 是否保存请求的参数
  28. */
  29. public boolean isSaveRequestData() default true;
  30. String indto() default "";
  31. }