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/manage/service/IWorkspaceService.java | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/dji/sample/manage/service/IWorkspaceService.java b/src/main/java/com/dji/sample/manage/service/IWorkspaceService.java
index 5defa10..2d80777 100644
--- a/src/main/java/com/dji/sample/manage/service/IWorkspaceService.java
+++ b/src/main/java/com/dji/sample/manage/service/IWorkspaceService.java
@@ -1,18 +1,13 @@
package com.dji.sample.manage.service;
+import com.dji.sample.component.mqtt.model.CommonTopicReceiver;
import com.dji.sample.manage.model.dto.WorkspaceDTO;
+import org.springframework.messaging.MessageHeaders;
import java.util.Optional;
public interface IWorkspaceService {
-
- /**
- * Query the workspace information based on the primary key id of the database.
- * @param id primary key id
- * @return
- */
- Optional<WorkspaceDTO> getWorkspaceById(int id);
/**
* Query the information of a workspace based on its workspace id.
@@ -20,4 +15,19 @@
* @return
*/
Optional<WorkspaceDTO> getWorkspaceByWorkspaceId(String workspaceId);
+
+ /**
+ * Query the workspace of a workspace based on bind code.
+ * @param bindCode
+ * @return
+ */
+ Optional<WorkspaceDTO> getWorkspaceNameByBindCode(String bindCode);
+
+ /**
+ * Handle the request for obtaining the organization information corresponding to the device binding.
+ * Note: If your business does not need to bind the dock to the organization,
+ * you can directly reply to the successful message without implementing business logic.
+ * @param receiver
+ */
+ void replyOrganizationGet(CommonTopicReceiver receiver, MessageHeaders headers);
}
--
Gitblit v1.9.3