| | |
| | | import com.dji.sample.media.model.MediaFileEntity; |
| | | import com.dji.sample.media.model.MediaFileQueryParam; |
| | | import com.dji.sample.media.service.IFileService; |
| | | import com.drew.imaging.ImageProcessingException; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.awt.*; |
| | | import java.io.IOException; |
| | | import java.net.URL; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | @GetMapping("/getMediaInfo") |
| | | public ResponseResult mediaInfo(@RequestParam String fileId) { |
| | | return ResponseResult.success(fileService.mediaInfo(fileId)); |
| | | public ResponseResult mediaInfo(@RequestParam String fileName) { |
| | | return ResponseResult.success(fileService.mediaInfo(fileName)); |
| | | } |
| | | |
| | | @GetMapping("/{workspace_id}/files/{job_id}") |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | @PostMapping("/{workspace_id}/mark") |
| | | public void eaveMarkFile(@PathVariable(name = "workspace_id") String workspaceId,@RequestBody FileUploadDTO file) throws ImageProcessingException, IOException, FontFormatException { |
| | | fileService.saveMarkFile(workspaceId,file); |
| | | } |
| | | } |