完善知识库容量权限与界面

This commit is contained in:
baiyanyun
2026-07-14 16:39:40 +08:00
parent 5b14b3f48d
commit 9002abfe61
16 changed files with 669 additions and 160 deletions

View File

@@ -42,6 +42,9 @@ public class ComponentDto implements Serializable {
@Schema(description = "创建时间")
private Date created;
@Schema(description = "资源占用空间,单位字节,知识库有效")
private Long fileSize;
private Long creatorId;
@Schema(description = "创建者信息")

View File

@@ -105,6 +105,8 @@ public class ComponentApplicationServiceImpl implements ComponentApplicationServ
componentDto.setType(ComponentTypeEnum.Knowledge);
componentDto.setExt(knowledgeConfigModel.getDataType());
componentDto.setIcon(knowledgeConfigModel.getIcon());
Long fileSize = iKnowledgeConfigApplicationService.queryTotalFileSize(knowledgeConfigModel.getId());
componentDto.setFileSize(fileSize == null ? 0L : fileSize);
componentDto.setCreatorId(knowledgeConfigModel.getCreatorId());
UserDto userDto = userDtoMap.get(knowledgeConfigModel.getCreatorId());
if (userDto != null) {