| package com.doumee.core.aware; | 
|   | 
| import com.doumee.core.constants.DataPermissionConstants; | 
|   | 
| import java.lang.annotation.*; | 
|   | 
| /** | 
|  * 数据权限控制注解 | 
|  * @author Eva.Caesar Liu | 
|  * @date 2022/03/15 09:54 | 
|  */ | 
| @Inherited | 
| @Target(ElementType.METHOD) | 
| @Retention(RetentionPolicy.RUNTIME) | 
| public @interface DataPermissionMapping { | 
|   | 
|     /** | 
|      * 权限类型 | 
|      */ | 
|     DataPermissionConstants.Type value(); | 
|   | 
|     /** | 
|      * 优先级 | 
|      */ | 
|     int priority(); | 
|   | 
|     /** | 
|      * 注入用户ID参数 | 
|      */ | 
|     boolean injectUser() default false; | 
|   | 
|     /** | 
|      * 注入自定义数据参数 | 
|      */ | 
|     boolean injectCustomData() default false; | 
| } |