|
|
|
@@ -188,9 +188,9 @@ public class ModelsController { |
|
|
|
*@param models_version_id 模型版本表主键 |
|
|
|
* @return 单条数据 |
|
|
|
*/ |
|
|
|
@GetMapping("/download_model") |
|
|
|
@GetMapping("/download_model/{models_version_id}") |
|
|
|
@ApiOperation(value = "下载模型", notes = "根据模型版本表id下载模型文件。") |
|
|
|
public ResponseEntity<InputStreamResource> downloadModels(@RequestParam("models_version_id") Integer models_version_id) throws Exception { |
|
|
|
public ResponseEntity<InputStreamResource> downloadModels(@PathVariable("models_version_id") Integer models_version_id) throws Exception { |
|
|
|
return modelsService.downloadModels(models_version_id); |
|
|
|
} |
|
|
|
|
|
|
|
|