chore(tenant): Tenant RPC Feign 客户端列表引入 ProjectCommonApi
框架层 starter-biz-tenant 的 @EnableFeignClients 补齐 ProjectCommonApi, 供租户隔离检查时跨服务拉取项目元数据使用。后续如体量增长可考虑拆独立 ViewshProjectRpcAutoConfiguration。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.viewsh.framework.tenant.config;
|
||||
|
||||
import com.viewsh.framework.tenant.core.rpc.TenantRequestInterceptor;
|
||||
import com.viewsh.framework.common.biz.system.project.ProjectCommonApi;
|
||||
import com.viewsh.framework.common.biz.system.tenant.TenantCommonApi;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
@@ -9,7 +10,7 @@ import org.springframework.context.annotation.Bean;
|
||||
|
||||
@AutoConfiguration
|
||||
@ConditionalOnProperty(prefix = "viewsh.tenant", value = "enable", matchIfMissing = true) // 允许使用 viewsh.tenant.enable=false 禁用多租户
|
||||
@EnableFeignClients(clients = TenantCommonApi.class) // 主要是引入相关的 API 服务
|
||||
@EnableFeignClients(clients = {TenantCommonApi.class, ProjectCommonApi.class}) // 主要是引入相关的 API 服务
|
||||
public class ViewshTenantRpcAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user