feat(后端): 镜像调整1
parent
deb4e08ecf
commit
c9d63ae3c8
|
@ -90,7 +90,7 @@ public class FileChunkController {
|
||||||
@ApiImplicitParam(name = "image_name", value = "镜像名称", required = true, dataType = "String", paramType = "query"),
|
@ApiImplicitParam(name = "image_name", value = "镜像名称", required = true, dataType = "String", paramType = "query"),
|
||||||
@ApiImplicitParam(name = "image_version", value = "镜像版本", required = true, dataType = "String", paramType = "query"),
|
@ApiImplicitParam(name = "image_version", value = "镜像版本", required = true, dataType = "String", paramType = "query"),
|
||||||
@ApiImplicitParam(name = "os_version", value = "操作系统", required = true, dataType = "String", paramType = "query"),
|
@ApiImplicitParam(name = "os_version", value = "操作系统", required = true, dataType = "String", paramType = "query"),
|
||||||
@ApiImplicitParam(name = "description", value = "描述", required = true, dataType = "String", paramType = "query")
|
@ApiImplicitParam(name = "description", value = "描述", dataType = "String", paramType = "query")
|
||||||
})
|
})
|
||||||
@ApiResponses({
|
@ApiResponses({
|
||||||
@ApiResponse(code = 200, message = "上传成功"),
|
@ApiResponse(code = 200, message = "上传成功"),
|
||||||
|
@ -108,7 +108,7 @@ public class FileChunkController {
|
||||||
@RequestParam("file_size") long totalSize,
|
@RequestParam("file_size") long totalSize,
|
||||||
@RequestParam("image_version") String imageVersion,
|
@RequestParam("image_version") String imageVersion,
|
||||||
@RequestParam("os_version") String osVersion,
|
@RequestParam("os_version") String osVersion,
|
||||||
@RequestParam("description") String description
|
@RequestParam(value = "description", required = false) String description
|
||||||
) {
|
) {
|
||||||
Map<String, Object> response = new HashMap<>();
|
Map<String, Object> response = new HashMap<>();
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,8 @@ public class ClientServiceImpl implements ClientService {
|
||||||
List<ImageRes> imageRes = BeanUtil.copyToList(images, ImageRes.class);
|
List<ImageRes> imageRes = BeanUtil.copyToList(images, ImageRes.class);
|
||||||
List<HashMap<String, Object>> collect = imageRes.stream().distinct().map(e -> {
|
List<HashMap<String, Object>> collect = imageRes.stream().distinct().map(e -> {
|
||||||
HashMap<String, Object> map = new HashMap<>();
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
if (StringUtils.isNotBlank(e.getImageName())) {
|
if (StringUtils.isNotBlank(e.getImageFileName())) {
|
||||||
map.put("name", e.getImageName());
|
map.put("name", e.getImageFileName());
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(e.getBtPath())) {
|
if (StringUtils.isNotBlank(e.getBtPath())) {
|
||||||
if (e.getBtPath().contains("http://") || e.getBtPath().contains("https://")) {
|
if (e.getBtPath().contains("http://") || e.getBtPath().contains("https://")) {
|
||||||
|
|
Loading…
Reference in New Issue