TASK:AiDA模块化

This commit is contained in:
shahaibo
2025-03-19 11:55:38 +08:00
parent d3b507ed45
commit d6f9aa155e

View File

@@ -1349,6 +1349,23 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
list.add(collectionElementVO);
}
}
List<CollectionSketchVO> voList = new ArrayList<>();
for (CollectionElement collectionElement : collectionElements) {
CollectionSketchVO vo = CopyUtil.copyObject(collectionElement, CollectionSketchVO.class);
String url = collectionElement.getUrl();
if (url.contains(".")) {
String[] split = url.split("\\.");
vo.setUrlWithWhiteSide(minioUtil.getPreSignedUrl(split[0] + "-show." + split[1], 24 * 60, true));
}else {
vo.setUrlWithWhiteSide(minioUtil.getPreSignedUrl(url + "-show", 24 * 60, true));
}
vo.setIsPin(collectionElement.getHasPin());
vo.setLevel2Type(collectionElement.getLevel2Type());
vo.setDesignType("Collection");
vo.setSketchBoardId(collectionElement.getId());
voList.add(vo);
}
moduleChooseVO.setBoundingBox(voList);
moduleChooseVO.setSketchBoard(list);
}else if (module.equals(Module.design.name())) {
DesignModuleChooseVO vo = new DesignModuleChooseVO();
@@ -1730,6 +1747,10 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
}else {
vo.setUrlWithWhiteSide(minioUtil.getPreSignedUrl(url + "-show", 24 * 60, true));
}
vo.setIsPin(collectionElement.getHasPin());
vo.setLevel2Type(collectionElement.getLevel2Type());
vo.setDesignType("Collection");
vo.setSketchBoardId(collectionElement.getId());
voList.add(vo);
}
result.setBoundingBox(voList);