OperateLog.java 610 B

123456789101112131415161718192021222324252627282930313233
  1. package com.nosum.common.annotation;
  2. import com.nosum.common.enums.OperateEnum;
  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. /**
  8. * 操作日志.
  9. *
  10. * @author Young
  11. */
  12. @Retention(RetentionPolicy.RUNTIME)
  13. @Target(ElementType.METHOD)
  14. public @interface OperateLog {
  15. /**
  16. * 模块名
  17. *
  18. * @return 模块名称
  19. */
  20. String module();
  21. /**
  22. * 操作编号
  23. *
  24. * @return 操作编号
  25. */
  26. OperateEnum code() default OperateEnum.GET_POSTS_DEFAULT;
  27. }