部门feignapi引用补充

This commit is contained in:
gaoqr
2024-12-02 15:07:06 +08:00
parent 9da90ea735
commit 73d31dbf8c
@@ -1,6 +1,7 @@
package com.cf.imes.framework.organ.config;
import com.cf.imes.framework.organ.core.rpc.OrganRequestInterceptor;
import com.cf.imes.module.system.api.dept.DeptApi;
import com.cf.imes.module.system.api.organ.OrganApi;
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 = "chenfeng.organ", value = "enable", matchIfMissing = true) // 允许使用 chenfeng.organ.enable=false 禁用多组织
@EnableFeignClients(clients = OrganApi.class) // 主要是引入相关的 API 服务
@EnableFeignClients(clients = {OrganApi.class, DeptApi.class}) // 主要是引入相关的 API 服务
public class ChenfengOrganRpcAutoConfiguration {
@Bean