From 63e766eb75950b6becaa2689f94611f397f05d43 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 1 Sep 2023 09:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vmp/vmanager/channel/CommonChannelController.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/channel/CommonChannelController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/channel/CommonChannelController.java index b395f35e..daf203db 100755 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/channel/CommonChannelController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/channel/CommonChannelController.java @@ -9,7 +9,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -32,7 +32,7 @@ public class CommonChannelController { * * @param civilCode 区域编号 */ - @DeleteMapping("/region/list") + @GetMapping("/region/list") @Operation(summary = "查询区域下的通道") @Parameter(name = "civilCode", description = "区域编号") public List getChannelsInRegion(String civilCode) { @@ -45,20 +45,19 @@ public class CommonChannelController { * * @param businessGroupID 业务分组ID */ - @DeleteMapping("/region/list") + @GetMapping("/group/list") @Operation(summary = "查询分组下的通道") @Parameter(name = "businessGroupID", description = "业务分组ID") public List getChannelsInBusinessGroup(String businessGroupID) { return commonGbChannelService.getChannelsInBusinessGroup(businessGroupID); } - /** * 从下级设备中同步通道 * * @param deviceId 设备编号 */ - @DeleteMapping("/sync/device") + @GetMapping("/sync/device") @Operation(summary = "从下级设备中同步通道") @Parameter(name = "deviceId", description = "设备编号") @Parameter(name = "syncKeys", description = "选择性同步的字段")