|
|
|
@ -104,9 +104,10 @@ public class InfraredController { |
|
|
|
|
|
|
|
|
|
|
|
//csv文件下载 |
|
|
|
@GetMapping("/ir/downloadCsv") |
|
|
|
public ResponseEntity<InputStreamResource> downloadCsv(@RequestParam String filePath) { |
|
|
|
InputStream csvStream = hikVisionService.downloadCsv(filePath); |
|
|
|
@PostMapping("/ir/downloadCsv") |
|
|
|
@ResponseBody |
|
|
|
public ResponseEntity<InputStreamResource> downloadCsv(@RequestBody InfraPictureInfo infraPictureInfo) { |
|
|
|
InputStream csvStream = hikVisionService.downloadCsv(infraPictureInfo.getFilePath()); |
|
|
|
return ResponseEntity.ok() |
|
|
|
.header("Content-Type", "text/csv; charset=utf-8") |
|
|
|
.header("Content-Disposition", "attachment; filename=data.csv") |
|
|
|
|