package admin.annotation;

import java.lang.annotation.*;

/**
 * @ClassName CurDataSource
 * @Description 切换数据源注解
 * @Author lzl
 **/
@Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CurDataSource {

    /**
     * 数据源名称，默认 ydp
     *
     * @return
     */
    String value() default "master";

}
