接入可配置概览服务并支持自适应缩放

This commit is contained in:
baiyanyun
2026-07-13 15:53:42 +08:00
parent 041964132a
commit c8a7bdc0f8
13 changed files with 108 additions and 8 deletions

View File

@@ -179,6 +179,9 @@ public class TenantConfigDto implements Serializable {
@Schema(description = "模型API根地址")
private String baseModelApiUrl;
@Schema(description = "客户端概览服务地址")
private String overviewServiceUrl;
@Schema(description = "智能取数服务地址")
private String intelligentDataServiceUrl;

View File

@@ -72,6 +72,18 @@ public class TenantConfigServiceImpl extends ServiceImpl<TenantConfigMapper, Ten
.required(true)
.sort(1)
.build());
tenantConfigDefaultList.add(TenantConfig.builder()
.name("overviewServiceUrl")
.description("客户端概览服务地址")
.value("http://127.0.0.1:5173/_app/digital")
.notice("客户端点击概览时加载的 HTTP 或 HTTPS 服务地址")
.placeholder("请输入客户端概览服务地址")
.category(TenantConfig.ConfigCategory.BaseConfig)
.inputType(TenantConfig.InputType.Input)
.dataType(TenantConfig.DataType.String)
.required(true)
.sort(2)
.build());
tenantConfigDefaultList.add(TenantConfig.builder()
.name("intelligentDataServiceUrl")
.description("智能取数服务地址")
@@ -82,7 +94,7 @@ public class TenantConfigServiceImpl extends ServiceImpl<TenantConfigMapper, Ten
.inputType(TenantConfig.InputType.Input)
.dataType(TenantConfig.DataType.String)
.required(true)
.sort(2)
.sort(3)
.build());
tenantConfigDefaultList.add(TenantConfig.builder()
.name("documentEditorServiceUrl")
@@ -94,7 +106,7 @@ public class TenantConfigServiceImpl extends ServiceImpl<TenantConfigMapper, Ten
.inputType(TenantConfig.InputType.Input)
.dataType(TenantConfig.DataType.String)
.required(false)
.sort(3)
.sort(4)
.build());
tenantConfigDefaultList.add(TenantConfig.builder()
.name("siteDescription")

View File

@@ -38,6 +38,9 @@ public class TenantController {
@Value("${model-api-proxy.base-api-url:}")
private String baseApiUrl;
@Value("${overview-page.service-url:http://127.0.0.1:5173/_app/digital}")
private String overviewServiceUrl;
@Value("${intelligent-data.service-url:http://192.168.2.106:3000/test-console}")
private String intelligentDataServiceUrl;
@@ -75,6 +78,9 @@ public class TenantController {
tenantConfigDto.setFaviconUrl(iFileAccessService.getFileUrlWithAk(tenantConfigDto.getFaviconUrl(), true));
tenantConfigDto.setSquareBanner(iFileAccessService.getFileUrlWithAk(tenantConfigDto.getSquareBanner(), true));
tenantConfigDto.setMaxFileSize(maxFileSize);
if (StringUtils.isBlank(tenantConfigDto.getOverviewServiceUrl())) {
tenantConfigDto.setOverviewServiceUrl(overviewServiceUrl);
}
if (StringUtils.isBlank(tenantConfigDto.getIntelligentDataServiceUrl())) {
tenantConfigDto.setIntelligentDataServiceUrl(intelligentDataServiceUrl);
}