package com.ylcm.sys.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.ylcm.sys.multiple.DataSourceEnum;

/**
* @ClassName: DataSourceSelect 
* @Description: 数据源选择注解
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSourceSelect {

	 /**
     * @Description: 数据源值，默认为主库
     * @return
     */
    DataSourceEnum value() default DataSourceEnum.READ_WRITE_DATA_SOURCE;
}
