package com.vci.ubcs.code.annotation;
|
|
import org.springframework.core.annotation.AliasFor;
|
import org.springframework.stereotype.Component;
|
|
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Retention;
|
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.Target;
|
|
/**
|
* 自定义流水算法的注解
|
* @author xiejun
|
* @date 2023-11-09
|
*/
|
@Target({ElementType.TYPE})
|
@Retention(RetentionPolicy.RUNTIME)
|
@Component
|
public @interface MdmSerialAlgorithm {
|
|
/**
|
* bean的名称
|
* 值,实际就是这个注解所在的类的全路径
|
* @return 值
|
*/
|
@AliasFor(
|
annotation = Component.class
|
)
|
String value() default "";
|
|
/**
|
* 事件的名称
|
* @return 事件名称
|
*/
|
String text();
|
|
/**
|
* 描述
|
* @return 描述
|
*/
|
String description() default "";
|
|
String serialType() default "";
|
}
|