- package cn.com.goldenwater.service;
- import reactor.core.publisher.Mono;
- public interface RateLimiterService {
- /**
- * 检查第三方服务在特定路径上是否被允许访问(限流检查)
- *
- * @param thirdPartyId 第三方服务ID
- * @param path 访问路径
- * @return 是否允许访问
- */
- Mono<Boolean> isAllowed(String thirdPartyId, String path);
- }
|