|
|
|
@ -6,9 +6,11 @@ import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 加上注解后不统一封装返回
|
|
|
|
|
* DisableBaseResponse 注解用于标记方法,使得这些方法的返回结果不进行统一的封装。
|
|
|
|
|
* 通常用于那些不需要遵循项目统一响应格式的特定接口。
|
|
|
|
|
*/
|
|
|
|
|
@Target(ElementType.METHOD)
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
|
@Target(ElementType.METHOD) // 指定该注解只能用于方法
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME) // 指定该注解在运行时有效
|
|
|
|
|
public @interface DisableBaseResponse {
|
|
|
|
|
// 该注解定义为空,不包含任何成员变量
|
|
|
|
|
}
|
|
|
|
|