TASK:参数名修改;
This commit is contained in:
@@ -36,6 +36,6 @@ public class CollectionElementVO {
|
|||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@ApiModelProperty("元素存放地址,绝对路径")
|
@ApiModelProperty("元素存放地址,绝对路径")
|
||||||
private String minioPath;
|
private String minIOPath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,6 @@ public class LibraryUpdateVo implements Serializable {
|
|||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@ApiModelProperty("存放地址")
|
@ApiModelProperty("存放地址")
|
||||||
private String minioPath;
|
private String minIOPath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class QueryLibraryPageVO {
|
|||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
@ApiModelProperty("图片minio地址")
|
@ApiModelProperty("图片minio地址")
|
||||||
private String minioPath;
|
private String minIOPath;
|
||||||
|
|
||||||
@ApiModelProperty("template 打点内容 level1Type为Models才传")
|
@ApiModelProperty("template 打点内容 level1Type为Models才传")
|
||||||
private LibraryModelPointVO libraryModelPoint;
|
private LibraryModelPointVO libraryModelPoint;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
|
|||||||
CollectionElement collectionElement = resolveData(uploadDTO, userInfo, path);
|
CollectionElement collectionElement = resolveData(uploadDTO, userInfo, path);
|
||||||
saveOne(collectionElement);
|
saveOne(collectionElement);
|
||||||
CollectionElementVO collectionElementVO = CopyUtil.copyObject(collectionElement, CollectionElementVO.class);
|
CollectionElementVO collectionElementVO = CopyUtil.copyObject(collectionElement, CollectionElementVO.class);
|
||||||
collectionElementVO.setMinioPath(collectionElementVO.getUrl());
|
collectionElementVO.setMinIOPath(collectionElementVO.getUrl());
|
||||||
collectionElementVO.setUrl(minioUtil.getPresignedUrl(collectionElementVO.getUrl(), 480));
|
collectionElementVO.setUrl(minioUtil.getPresignedUrl(collectionElementVO.getUrl(), 480));
|
||||||
collectionElementVO.setDesignType(DesignTypeEnum.COLLECTION.getRealName());
|
collectionElementVO.setDesignType(DesignTypeEnum.COLLECTION.getRealName());
|
||||||
return collectionElementVO;
|
return collectionElementVO;
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
|||||||
IPage<QueryLibraryPageVO> convert = page.convert((Function<Library, QueryLibraryPageVO>) library -> {
|
IPage<QueryLibraryPageVO> convert = page.convert((Function<Library, QueryLibraryPageVO>) library -> {
|
||||||
QueryLibraryPageVO libraryPageVO = CopyUtil.copyObject(library,QueryLibraryPageVO.class);
|
QueryLibraryPageVO libraryPageVO = CopyUtil.copyObject(library,QueryLibraryPageVO.class);
|
||||||
libraryPageVO.setDesignType(DesignTypeEnum.LIBRARY.getRealName());
|
libraryPageVO.setDesignType(DesignTypeEnum.LIBRARY.getRealName());
|
||||||
libraryPageVO.setMinioPath(library.getUrl());
|
libraryPageVO.setMinIOPath(library.getUrl());
|
||||||
libraryPageVO.setUrl(minioUtil.getPresignedUrl(library.getUrl(),480));
|
libraryPageVO.setUrl(minioUtil.getPresignedUrl(library.getUrl(),480));
|
||||||
if(finalMap != null && finalMap.containsKey(library.getId())){
|
if(finalMap != null && finalMap.containsKey(library.getId())){
|
||||||
libraryPageVO.setLibraryModelPoint(finalMap.get(library.getId()));
|
libraryPageVO.setLibraryModelPoint(finalMap.get(library.getId()));
|
||||||
@@ -165,7 +165,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
|||||||
//保存element元素
|
//保存element元素
|
||||||
Library library = resolveData(libraryUploadDTO, userInfo, filePath);
|
Library library = resolveData(libraryUploadDTO, userInfo, filePath);
|
||||||
LibraryUpdateVo libraryUpdateVo = CopyUtil.copyObject(library, LibraryUpdateVo.class);
|
LibraryUpdateVo libraryUpdateVo = CopyUtil.copyObject(library, LibraryUpdateVo.class);
|
||||||
libraryUpdateVo.setMinioPath(libraryUpdateVo.getUrl());
|
libraryUpdateVo.setMinIOPath(libraryUpdateVo.getUrl());
|
||||||
libraryUpdateVo.setUrl(minioUtil.getPresignedUrl(filePath, 480));
|
libraryUpdateVo.setUrl(minioUtil.getPresignedUrl(filePath, 480));
|
||||||
return libraryUpdateVo;
|
return libraryUpdateVo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user