Files
aida-seller/src/main/java/com/aida/seller/common/annotation/InternalOnly.java
2026-05-20 11:09:30 +08:00

18 lines
488 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 {
}