Files
aida-seller/src/main/java/com/aida/seller/common/annotation/InternalOnly.java

18 lines
488 B
Java
Raw Normal View History

2026-05-20 11:09:30 +08:00
package com.aida.seller.common.annotation;
import java.lang.annotation.*;
/**
* 标记接口仅允许内部服务调用Feign 远程调用
* <p>
* 被此注解标记的 Controller 方法会通过 AOP 拦截
* 仅放行携带了正确内部调用 Header 的请求外部 HTTP 请求将被拒绝
*
* @see com.aida.seller.common.aop.InternalOnlyAspect
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface InternalOnly {
}