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