From bb3652e04f5a66172d0a6cd6ec2535b82e7ca2ed Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Tue, 04 Jun 2024 17:19:51 +0800
Subject: [PATCH] 修改航线查询、添加方法,图斑查询方法。
---
src/main/java/com/dji/sample/media/controller/MediaController.java | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/dji/sample/media/controller/MediaController.java b/src/main/java/com/dji/sample/media/controller/MediaController.java
index 3acd920..b4f9635 100644
--- a/src/main/java/com/dji/sample/media/controller/MediaController.java
+++ b/src/main/java/com/dji/sample/media/controller/MediaController.java
@@ -13,6 +13,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
+import java.awt.*;
+import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -33,6 +35,7 @@
/**
* Check if the file has been uploaded by the fingerprint.
* 检查文件是否已通过指纹上传。
+ *
* @param workspaceId
* @param file
* @return
@@ -48,19 +51,20 @@
/**
* When the file is uploaded to the storage server by pilot,
* the basic information of the file is reported through this interface.
+ *
* @param workspaceId
* @param file
* @return
*/
@PostMapping("/{workspace_id}/upload-callback")
- public ResponseResult<String> uploadCallback(@PathVariable(name = "workspace_id") String workspaceId, @RequestBody FileUploadDTO file) {
+ public ResponseResult<String> uploadCallback(@PathVariable(name = "workspace_id") String workspaceId, @RequestBody FileUploadDTO file) throws IOException, FontFormatException {
mediaService.saveMediaFile(workspaceId, file);
return ResponseResult.success(file.getObjectKey());
-
}
/**
* Query the files that already exist in this workspace based on the workspace id and the collection of tiny fingerprints.
+ *
* @param workspaceId
* @param tinyFingerprints There is only one tiny_fingerprint parameter in the body.
* But it is not recommended to use Map to receive the parameter.
@@ -77,7 +81,7 @@
@GetMapping("/{workspace_id}/files/media_page")
public ResponseResult<PaginationData<MediaJobDTO>> mediaPage(
- @PathVariable(name = "workspace_id") String workspaceId, @RequestBody SearchMediaParam param) {
+ @PathVariable(name = "workspace_id") String workspaceId, @RequestBody SearchMediaParam param) {
PaginationData<MediaJobDTO> data = mediaService.mediaPage(workspaceId, param);
return ResponseResult.success(data);
--
Gitblit v1.9.3