package com.zsElectric.openapi.common.annotation; import java.lang.annotation.*; /** * 数据源切换注解 * 用于在方法或类级别指定使用哪个数据源 * * @author Ray.Hao */ @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface DS { /** * 数据源名称 * 可选值: openapi(开放平台数据库), business(业务系统数据库) */ String value() default "openapi"; }