| 123456789101112131415161718192021222324252627282930313233343536 |
- package com.poyee.annotation;
- import com.poyee.common.enums.Roles;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- // 需要登录才能进行操作的注解UserLoginToken
- @Target({ElementType.METHOD, ElementType.TYPE})
- @Retention(RetentionPolicy.RUNTIME)
- public @interface UserLoginToken {
- /**
- * 是否需要登录
- * @return
- */
- boolean required() default true;
- /**
- * 是否需要实名
- * @return
- */
- boolean faceVerify() default false;
- /**
- * @return
- */
- Roles[] roles() default {Roles.ADMIN};
- /**
- * 非验证来源
- * @return
- */
- String pass_aud() default "partner";
- }
|