接入可配置文档编辑与智能取数服务

This commit is contained in:
baiyanyun
2026-07-13 14:53:14 +08:00
parent ab4e84004f
commit 474a4866d2
16 changed files with 443 additions and 9 deletions

View File

@@ -38,6 +38,12 @@ public class TenantController {
@Value("${model-api-proxy.base-api-url:}")
private String baseApiUrl;
@Value("${intelligent-data.service-url:http://192.168.2.106:3000/test-console}")
private String intelligentDataServiceUrl;
@Value("${document-editor.service-url:}")
private String documentEditorServiceUrl;
@Operation(summary = "租户配置信息查询接口")
@RequestMapping(path = "/config", method = RequestMethod.GET)
public ReqResult<TenantConfigDto> getConfig() {
@@ -69,6 +75,12 @@ public class TenantController {
tenantConfigDto.setFaviconUrl(iFileAccessService.getFileUrlWithAk(tenantConfigDto.getFaviconUrl(), true));
tenantConfigDto.setSquareBanner(iFileAccessService.getFileUrlWithAk(tenantConfigDto.getSquareBanner(), true));
tenantConfigDto.setMaxFileSize(maxFileSize);
if (StringUtils.isBlank(tenantConfigDto.getIntelligentDataServiceUrl())) {
tenantConfigDto.setIntelligentDataServiceUrl(intelligentDataServiceUrl);
}
if (StringUtils.isBlank(tenantConfigDto.getDocumentEditorServiceUrl())) {
tenantConfigDto.setDocumentEditorServiceUrl(documentEditorServiceUrl);
}
if (StringUtils.isBlank(tenantConfigDto.getTemplateConfig()) || tenantConfigDto.getTemplateConfig().equals("{}")) {
tenantConfigDto.setTemplateConfig("{\"primaryColor\":\"#5147ff\",\"backgroundId\":\"bg-variant-1\",\"antdTheme\":\"light\",\"layoutStyle\":\"light\",\"navigationStyle\":\"style1\",\"timestamp\":1757425328082}");
}
@@ -108,4 +120,4 @@ public class TenantController {
I18nUtil.replaceSystemMessage(tenantConfigDto);
return ReqResult.success(tenantConfigDto);
}
}
}