dangsn
2024-06-06 33321f5486fd586fda6fd3f46b7e71754fede28b
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.vci.starter.web.annotation.config;
 
import org.springframework.core.annotation.AliasFor;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 配置中心的模块下的配置字段
 * @author weidy
 * @date 2020/2/5
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface VciConfigField {
    /**
     * 在配置中心里的配置项
     * @return
     */
    @AliasFor("name")
    String value() default "";
 
    /**
     * 在配置中心里的配置项名称
     * @return
     */
    String name() default "";
 
    /**
     * 在配置中心里配置项的标题
     * @return
     */
    String title();
 
    /**
     * 所属模块,自动继承这个注解所属类上的注解
     * @return
     */
    String model() default "";
 
    /**
     * 是否修改后立即生效
     * @return
     */
    boolean effectOnEdit() default false;
 
    /**
     * 是否多选
     * @return
     */
    boolean mutliValue() default false;
 
    /**
     * 描述
     * @return
     */
    String description() default "";
 
}