From e76f0739e647fe8a7e0e2618914e2faff554b1b7 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期一, 17 十一月 2025 17:33:23 +0800
Subject: [PATCH] 解决冲突
---
mes-processes/mes-plcSend/src/main/java/com/mes/device/service/DeviceGroupRelationService.java | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/mes-processes/mes-plcSend/src/main/java/com/mes/device/service/DeviceGroupRelationService.java b/mes-processes/mes-plcSend/src/main/java/com/mes/device/service/DeviceGroupRelationService.java
new file mode 100644
index 0000000..08e7a75
--- /dev/null
+++ b/mes-processes/mes-plcSend/src/main/java/com/mes/device/service/DeviceGroupRelationService.java
@@ -0,0 +1,71 @@
+package com.mes.device.service;
+
+import com.mes.device.vo.DeviceGroupVO;
+import java.util.List;
+
+/**
+ * 璁惧缁勫叧绯荤鐞嗘湇鍔℃帴鍙�
+ *
+ * @author mes
+ * @since 2024-10-30
+ */
+public interface DeviceGroupRelationService {
+
+ /**
+ * 娣诲姞璁惧鍒拌澶囩粍
+ *
+ * @param groupId 璁惧缁処D
+ * @param deviceId 璁惧ID
+ * @param deviceRole 璁惧瑙掕壊
+ */
+ void addDeviceToGroup(Long groupId, Long deviceId, String deviceRole);
+
+ /**
+ * 浠庤澶囩粍涓Щ闄よ澶�
+ *
+ * @param groupId 璁惧缁処D
+ * @param deviceId 璁惧ID
+ */
+ void removeDeviceFromGroup(Long groupId, Long deviceId);
+
+ /**
+ * 鏇存柊璁惧鍦ㄨ澶囩粍涓殑瑙掕壊
+ *
+ * @param groupId 璁惧缁処D
+ * @param deviceId 璁惧ID
+ * @param deviceRole 璁惧瑙掕壊
+ */
+ void updateDeviceRole(Long groupId, Long deviceId, String deviceRole);
+
+ /**
+ * 鑾峰彇璁惧缁勪笅鐨勮澶囧垪琛�
+ *
+ * @param groupId 璁惧缁処D
+ * @return 璁惧淇℃伅鍒楄〃
+ */
+ List<DeviceGroupVO.DeviceInfo> getGroupDevices(Long groupId);
+
+ /**
+ * 鑾峰彇璁惧鎵�灞炵殑璁惧缁勫垪琛�
+ *
+ * @param deviceId 璁惧ID
+ * @return 璁惧缁勪俊鎭垪琛�
+ */
+ List<DeviceGroupVO.GroupInfo> getDeviceGroups(Long deviceId);
+
+ /**
+ * 鎵归噺娣诲姞璁惧鍒拌澶囩粍
+ *
+ * @param groupId 璁惧缁処D
+ * @param deviceIds 璁惧ID鍒楄〃
+ */
+ void batchAddDevicesToGroup(Long groupId, List<Long> deviceIds);
+
+ /**
+ * 鎵归噺浠庤澶囩粍绉婚櫎璁惧
+ *
+ * @param groupId 璁惧缁処D
+ * @param deviceIds 璁惧ID鍒楄〃
+ */
+ void batchRemoveDevicesFromGroup(Long groupId, List<Long> deviceIds);
+}
\ No newline at end of file
--
Gitblit v1.8.0