Log.java 427 B

1234567891011121314151617181920212223
  1. package com.coffee.common.annotation;
  2. import com.coffee.common.enums.UserPlatformEnum;
  3. import java.lang.annotation.*;
  4. /**
  5. * 日志注解
  6. *
  7. * @author Kevin
  8. */
  9. @Target({ElementType.PARAMETER, ElementType.METHOD})
  10. @Retention(RetentionPolicy.RUNTIME)
  11. @Documented
  12. public @interface Log {
  13. String title() default "";
  14. /**
  15. * 用户平台
  16. */
  17. UserPlatformEnum userPlatform() default UserPlatformEnum.WEB;
  18. }