TASK:模块化;

This commit is contained in:
shahaibo
2025-03-25 13:16:31 +08:00
parent d080fc04bb
commit 9a933e74ff
2 changed files with 2 additions and 0 deletions

View File

@@ -5,4 +5,5 @@ import lombok.Data;
@Data
public class ToProductElementVO extends ToProductElement {
private String minioUrl;
}

View File

@@ -590,6 +590,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
toProductElement.setCreateTime(LocalDateTime.now());
toProductElementMapper.insert(toProductElement);
ToProductElementVO toProductElementVO = CopyUtil.copyObject(toProductElement, ToProductElementVO.class);
toProductElementVO.setMinioUrl(toProductElementVO.getUrl());
toProductElementVO.setUrl(minioUtil.getPreSignedUrl(toProductElementVO.getUrl(), 24 * 60));
return toProductElementVO;
}