From eca625c35d5ed64c98277d2f83963e46438f50ce Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期五, 03 一月 2025 09:57:50 +0800
Subject: [PATCH] 执行调度模型新增可以传入模型参数

---
 iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/tenant/TenantApi.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/tenant/TenantApi.java b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/tenant/TenantApi.java
index 30baa2c..5e4db65 100644
--- a/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/tenant/TenantApi.java
+++ b/iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/api/tenant/TenantApi.java
@@ -1,7 +1,9 @@
 package com.iailab.module.system.api.tenant;
 
 import com.iailab.framework.common.pojo.CommonResult;
+import com.iailab.module.system.api.tenant.dto.TenantDataSourceConfigRespDTO;
 import com.iailab.module.system.enums.ApiConstants;
+import io.swagger.v3.oas.annotations.Parameters;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import io.swagger.v3.oas.annotations.Parameter;
 import io.swagger.v3.oas.annotations.Operation;
@@ -11,7 +13,7 @@
 
 import java.util.List;
 
-@FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory =
+@FeignClient(name = ApiConstants.NAME)
 @Tag(name = "RPC 服务 - 多租户")
 public interface TenantApi {
 
@@ -26,4 +28,11 @@
     @Parameter(name = "id", description = "租户编号", required = true, example = "1024")
     CommonResult<Boolean> validTenant(@RequestParam("id") Long id);
 
+    @GetMapping(PREFIX + "/data-source")
+    @Operation(summary = "获得租户的数据源配置")
+    @Parameters(
+            @Parameter(name = "tenantId", description = "租户编号", example = "2", required = true)
+    )
+    TenantDataSourceConfigRespDTO getTenantDataSourceConfig(@RequestParam("tenantId") Long tenantId);
+
 }

--
Gitblit v1.9.3