package com.zt.common.annotation;
|
|
import com.zt.common.db.constant.OP;
|
|
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Retention;
|
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.Target;
|
|
/**
|
* 数据过滤
|
*
|
* Created by hehz on 2020/6/15.
|
*/
|
@Target(ElementType.METHOD)
|
@Retention(RetentionPolicy.RUNTIME)
|
public @interface DataFilter {
|
|
String name() default "";// 权限节点名称
|
|
String field();// 字段
|
|
String alias() default "a";// 表别名
|
|
String accept();// 可选值
|
|
String dict() default "";// 可选值为字典时的字典key
|
|
String op() default OP.EQ;// 操作符
|
|
String defaul() default "";// 默认值
|
}
|