Browse Source

修改模型不准返回状态码

pull/7/head
fanshuai 1 year ago
parent
commit
503932f736
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

@@ -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);
}



Loading…
Cancel
Save