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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.dobbinsoft.fw.core.annotation.param;
 
import java.lang.annotation.*;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2018-08-20
 * Time: 上午10:51
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Documented
public @interface TextFormat {
 
    String regex() default "";
 
    String[] contains() default {};
 
    String[] notContains() default {};
 
    String startWith() default "";
 
    String endsWith() default "";
 
    int lengthMax() default Integer.MAX_VALUE;
 
    int lengthMin() default 0;
 
    int length() default -1;
 
    boolean notChinese() default false;
 
    String message() default "";
 
    boolean reqScope() default true;
 
    boolean respScope() default false;
 
}