mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
28 lines
553 B
Java
28 lines
553 B
Java
package com.jsowell.common.annotation;
|
|
|
|
import java.lang.annotation.Documented;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* 数据权限过滤注解
|
|
*
|
|
* @author jsowell
|
|
*/
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
public @interface DataScope {
|
|
/**
|
|
* 部门表的别名
|
|
*/
|
|
public String deptAlias() default "";
|
|
|
|
/**
|
|
* 用户表的别名
|
|
*/
|
|
public String userAlias() default "";
|
|
}
|