| | |
| | | import com.dji.sample.common.model.PaginationData; |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.media.model.MediaFileDTO; |
| | | import com.dji.sample.media.model.MediaFileEntity; |
| | | import com.dji.sample.media.model.MediaFileQueryParam; |
| | | import com.dji.sample.media.service.IFileService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | return ResponseResult.success(filesList); |
| | | } |
| | | |
| | | @GetMapping("/{workspace_id}/updateFile") |
| | | public ResponseResult updateFile(@PathVariable(name = "workspace_id") String workspaceId, MediaFileEntity mediaFileEntity) { |
| | | return ResponseResult.success(fileService.updateMediaFile(workspaceId, mediaFileEntity)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Query the download address of the file according to the media file id, |
| | | * and redirect to this address directly for download. |