TASK:上传回显;

This commit is contained in:
shahaibo
2025-06-12 13:12:44 +08:00
parent f179368668
commit 3cd86042ff
3 changed files with 14 additions and 1 deletions

View File

@@ -14,7 +14,9 @@ public enum Module implements IEnumDisplay {
poseTransfer("Pose Transfer"),
canvas("Canvas"),
patternMaking3D("3D Pattern Making"),
deReconstruction("De/Reconstruction");
deReconstruction("De/Reconstruction"),
uploadElement("UploadElement"),
;
private final String value;

View File

@@ -1,5 +1,6 @@
package com.ai.da.model.vo;
import com.ai.da.mapper.primary.entity.ToProductElement;
import com.ai.da.model.dto.PortfolioDTO;
import com.ai.da.model.dto.ToProductImageDTO;
import io.swagger.annotations.ApiModel;
@@ -37,4 +38,6 @@ public class ModuleChooseVO {
private ThreeDModuleVO patternMaking3D;
private List<CollectionElementVO> mannequin;
private List<ToProductElement> uploadElement;
}

View File

@@ -1747,6 +1747,14 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
}
}
moduleChooseVO.setMannequin(list);
}else if (module.equals(Module.uploadElement.name())) {
QueryWrapper<ToProductElement> qw = new QueryWrapper<>();
qw.lambda().eq(ToProductElement::getProjectId, projectDTO.getId());
List<ToProductElement> toProductElements = toProductElementMapper.selectList(qw);
for (ToProductElement toProductElement : toProductElements) {
toProductElement.setUrl(minioUtil.getPreSignedUrl(toProductElement.getUrl(), 24 * 60));
}
moduleChooseVO.setUploadElement(toProductElements);
}
}
return moduleChooseVO;