add
yj
2024-12-05 a160d838f9c0a79dfc2f18e7cd46bdd4faa59c6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.dobbinsoft.fw.core.annotation.param;
 
import java.lang.annotation.*;
 
/**
 * Created with IntelliJ IDEA.
 * Description: 自定义参数校验
 * User: rize
 * Date: 2021-03-17
 * Time: 上午9:15
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Documented
public @interface CustomCheck {
 
    /**
     * 校验器Class对象,会从IoC中拿取
     * @return
     */
    Class beanClass();
 
    boolean reqScope() default true;
 
    boolean respScope() default false;
 
}