Browse Source

Merge remote-tracking branch 'origin/dev' into dev

pull/7/head
西大锐 1 year ago
parent
commit
13c902e16e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/model/ModelsController.java

+ 2
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/model/ModelsController.java View File

@@ -189,9 +189,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);
}



Loading…
Cancel
Save