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 "";
|
|
}
|