update 调整模型zip导出

This commit is contained in:
gssong 2024-03-16 22:00:58 +08:00
parent f3207649ff
commit 7c7cfc8c39

View File

@ -23,6 +23,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Arrays; import java.util.Arrays;
import java.util.List;
/** /**
* 模型管理 控制层 * 模型管理 控制层
@ -125,12 +126,12 @@ public class ActModelController extends BaseController {
/** /**
* 导出模型zip压缩包 * 导出模型zip压缩包
* *
* @param modelId 模型id * @param modelIds 模型id
* @param response 相应 * @param response 相应
*/ */
@GetMapping("/export/zip/{modelId}") @GetMapping("/export/zip/{modelIds}")
public void exportZip(@NotEmpty(message = "模型id不能为空") @PathVariable String modelId, public void exportZip(@NotEmpty(message = "模型id不能为空") @PathVariable List<String> modelIds,
HttpServletResponse response) { HttpServletResponse response) {
actModelService.exportZip(modelId, response); actModelService.exportZip(modelIds, response);
} }
} }