From a7aaeabc7873a0eafb4a7ecad7f65b018b7a9bc9 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 24 Feb 2023 19:31:23 +0800
Subject: [PATCH] What's new? 1. Add license for dock. 2. Modify the logic corresponding to the firmware file and device type. 3. Add multiple mqtt clients options. 4. Modify the structure of the interface for obtaining the device list. 5. Fixed some issues.
---
src/main/java/com/dji/sample/media/controller/FileController.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/dji/sample/media/controller/FileController.java b/src/main/java/com/dji/sample/media/controller/FileController.java
index 8fa8451..8a378f5 100644
--- a/src/main/java/com/dji/sample/media/controller/FileController.java
+++ b/src/main/java/com/dji/sample/media/controller/FileController.java
@@ -32,23 +32,23 @@
public ResponseResult<PaginationData<MediaFileDTO>> getFilesList(@RequestParam(defaultValue = "1") Long page,
@RequestParam(name = "page_size", defaultValue = "10") Long pageSize,
@PathVariable(name = "workspace_id") String workspaceId) {
- PaginationData<MediaFileDTO> filesList = fileService.getJobsPaginationByWorkspaceId(workspaceId, page, pageSize);
+ PaginationData<MediaFileDTO> filesList = fileService.getMediaFilesPaginationByWorkspaceId(workspaceId, page, pageSize);
return ResponseResult.success(filesList);
}
/**
- * Query the download address of the file according to the media file fingerprint,
+ * Query the download address of the file according to the media file id,
* and redirect to this address directly for download.
* @param workspaceId
- * @param fingerprint
+ * @param fileId
* @param response
*/
- @GetMapping("/{workspace_id}/file/{fingerprint}/url")
+ @GetMapping("/{workspace_id}/file/{file_id}/url")
public void getFileUrl(@PathVariable(name = "workspace_id") String workspaceId,
- @PathVariable String fingerprint, HttpServletResponse response) {
+ @PathVariable(name = "file_id") String fileId, HttpServletResponse response) {
try {
- URL url = fileService.getObjectUrl(workspaceId, fingerprint);
+ URL url = fileService.getObjectUrl(workspaceId, fileId);
response.sendRedirect(url.toString());
} catch (IOException e) {
e.printStackTrace();
--
Gitblit v1.9.3