TASK:模块化;
This commit is contained in:
@@ -5,4 +5,5 @@ import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ToProductElementVO extends ToProductElement {
|
||||
private String minioUrl;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user