aaa8d6a7c86ad1c24c645a8039774ef114e6d0b8.svn-base 831 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package org.jeecg.common.aspect.annotation;
  2. import org.jeecg.common.constant.CommonConstant;
  3. import org.jeecg.common.constant.enums.ModuleType;
  4. import java.lang.annotation.*;
  5. /**
  6. * 系统日志注解
  7. *
  8. * @Author scott
  9. * @email jeecgos@163.com
  10. * @Date 2019年1月14日
  11. */
  12. @Target(ElementType.METHOD)
  13. @Retention(RetentionPolicy.RUNTIME)
  14. @Documented
  15. public @interface AutoLog {
  16. /**
  17. * 日志内容
  18. *
  19. * @return
  20. */
  21. String value() default "";
  22. /**
  23. * 日志类型
  24. *
  25. * @return 0:操作日志;1:登录日志;2:定时任务;
  26. */
  27. int logType() default CommonConstant.LOG_TYPE_2;
  28. /**
  29. * 操作日志类型
  30. *
  31. * @return (1查询,2添加,3修改,4删除)
  32. */
  33. int operateType() default 0;
  34. /**
  35. * 模块类型 默认为common
  36. * @return
  37. */
  38. ModuleType module() default ModuleType.COMMON;
  39. }