接入可配置概览服务并支持自适应缩放
This commit is contained in:
@@ -185,6 +185,9 @@ eco-market:
|
||||
mcp:
|
||||
proxy-base-url: ${MCP_PROXY_URL:http://localhost:8020}
|
||||
|
||||
overview-page:
|
||||
service-url: ${OVERVIEW_SERVICE_URL:http://127.0.0.1:5173/_app/digital}
|
||||
|
||||
intelligent-data:
|
||||
service-url: ${INTELLIGENT_DATA_SERVICE_URL:http://192.168.2.106:3000/test-console}
|
||||
|
||||
|
||||
@@ -185,6 +185,9 @@ eco-market:
|
||||
mcp:
|
||||
proxy-base-url: ${MCP_PROXY_URL:http://localhost:18020}
|
||||
|
||||
overview-page:
|
||||
service-url: ${OVERVIEW_SERVICE_URL:http://127.0.0.1:5173/_app/digital}
|
||||
|
||||
intelligent-data:
|
||||
service-url: ${INTELLIGENT_DATA_SERVICE_URL:http://192.168.2.106:3000/test-console}
|
||||
|
||||
|
||||
@@ -182,6 +182,9 @@ eco-market:
|
||||
mcp:
|
||||
proxy-base-url: ${MCP_PROXY_URL:http://localhost:8020}
|
||||
|
||||
overview-page:
|
||||
service-url: ${OVERVIEW_SERVICE_URL:http://127.0.0.1:5173/_app/digital}
|
||||
|
||||
intelligent-data:
|
||||
service-url: ${INTELLIGENT_DATA_SERVICE_URL:http://192.168.2.106:3000/test-console}
|
||||
|
||||
|
||||
@@ -182,6 +182,9 @@ eco-market:
|
||||
mcp:
|
||||
proxy-base-url: ${MCP_PROXY_URL:http://localhost:8020}
|
||||
|
||||
overview-page:
|
||||
service-url: ${OVERVIEW_SERVICE_URL:http://127.0.0.1:5173/_app/digital}
|
||||
|
||||
intelligent-data:
|
||||
service-url: ${INTELLIGENT_DATA_SERVICE_URL:http://192.168.2.106:3000/test-console}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user