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