| | |
| | | import com.dji.sample.media.model.MediaFileQueryParam; |
| | | import com.dji.sample.media.service.IFileService; |
| | | import com.dji.sample.media.util.ImageDownloaderAndCompressor; |
| | | import com.dji.sample.media.util.MinioFileDownloader; |
| | | import com.drew.imaging.ImageProcessingException; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.mock.web.MockHttpServletResponse; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/download-images") |
| | | public void downloadImages(@RequestParam String jobId, HttpServletResponse response) { |
| | | fileService.downloadImages(jobId,response); |
| | | @PostMapping("/download-images") |
| | | public ResponseResult downloadImages(@RequestBody List<String> jobIds) { |
| | | return fileService.downloadImages(jobIds); |
| | | } |
| | | |
| | | } |