|
@@ -55,12 +55,13 @@ public class TabFileInfoController extends BaseController {
|
|
|
return iTabFileInfoService.falseDeleteTabFileInfoById(fileId);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("上传接入标准")
|
|
|
@PostMapping("/upload")
|
|
|
- @ResponseBody
|
|
|
- public AjaxResult addSave(@RequestParam("file") MultipartFile file, TabFileInfo fileInfo) throws Exception {
|
|
|
+ public AjaxResult upload(@RequestParam("file") MultipartFile file, TabFileInfo fileInfo) throws Exception {
|
|
|
return iTabFileInfoService.insertTabFileInfo(file, fileInfo);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("下载接入标准")
|
|
|
@GetMapping("/download/{fileId}")
|
|
|
public void downloadFile(@PathVariable String fileId, HttpServletResponse response) throws Exception {
|
|
|
OutputStream os;//新建一个输出流对象
|