| 123456789101112131415161718 |
- package cn.com.goldenwater.dcproj.target;
- import java.lang.annotation.*;
- @Target({ElementType.METHOD})
- @Retention(RetentionPolicy.RUNTIME)
- @Documented
- public @interface Authority {
- /**
- *
- * 角色类型,多个角色用逗号分隔
- * 角色1>2>3>4 按照这种方式权限高的用户能够对低用户信息进行查看
- * 1机构领导,2管理员,3督查人员,4稽察人员
- * */
- String roles() default "3";
- boolean premit() default true;
- }
|