소스 검색

Merge branch 'wanghaicheng' of lift-manager/lift-server into develop

wanghaicheng 5 년 전
부모
커밋
506f2ecadf
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      lift-quan-service/src/main/java/cn/com/ty/lift/quan/news/controller/QuanNewsController.java

+ 3 - 1
lift-quan-service/src/main/java/cn/com/ty/lift/quan/news/controller/QuanNewsController.java

@@ -8,6 +8,8 @@ import lombok.AllArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import java.io.IOException;
+
 /**
  * <p>
  * 电梯圈新闻公告 前端控制器
@@ -94,7 +96,7 @@ public class QuanNewsController {
     }
 
     @PostMapping("/upFile")
-    public RestResponse upFile(@RequestParam Long id, @RequestParam MultipartFile file) {
+    public RestResponse upFile(@RequestParam Long id, @RequestParam MultipartFile file) throws IOException {
         return quanNewsService.upFile(id, file);
     }
 }