From 171702e4ce19b0910b4c6b80734519ad5a6e9c60 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Tue, 11 Mar 2025 09:46:33 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3]=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=BC=BA=E5=B0=91=E7=9A=84=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/vmanager/server/ServerController.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java index c9e7252a..0da1ef46 100755 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java @@ -5,7 +5,6 @@ import com.alibaba.fastjson2.JSONObject; import com.genersoft.iot.vmp.common.SystemAllInfo; import com.genersoft.iot.vmp.common.VersionPo; import com.genersoft.iot.vmp.common.enums.ChannelDataType; -import com.genersoft.iot.vmp.common.enums.DeviceControlType; import com.genersoft.iot.vmp.conf.SipConfig; import com.genersoft.iot.vmp.conf.UserSetting; import com.genersoft.iot.vmp.conf.VersionInfo; @@ -224,7 +223,7 @@ public class ServerController { } @GetMapping(value = "/config") - @Operation(summary = "获取配置信息") + @Operation(summary = "获取配置信息", security = @SecurityRequirement(name = JwtUtils.HEADER)) @Parameter(name = "type", description = "配置类型(sip, base)", required = true) @ResponseBody public JSONObject getVersion(String type) { @@ -251,7 +250,7 @@ public class ServerController { @GetMapping(value = "/system/info") @ResponseBody - @Operation(summary = "获取系统信息") + @Operation(summary = "获取系统信息", security = @SecurityRequirement(name = JwtUtils.HEADER)) public SystemAllInfo getSystemInfo() { SystemAllInfo systemAllInfo = redisCatchStorage.getSystemInfo(); @@ -260,7 +259,7 @@ public class ServerController { @GetMapping(value = "/media_server/load") @ResponseBody - @Operation(summary = "获取负载信息") + @Operation(summary = "获取负载信息", security = @SecurityRequirement(name = JwtUtils.HEADER)) public List getMediaLoad() { List result = new ArrayList<>(); List allOnline = mediaServerService.getAllOnline(); @@ -276,7 +275,7 @@ public class ServerController { @GetMapping(value = "/resource/info") @ResponseBody - @Operation(summary = "获取负载信息") + @Operation(summary = "获取负载信息", security = @SecurityRequirement(name = JwtUtils.HEADER)) public ResourceInfo getResourceInfo() { ResourceInfo result = new ResourceInfo(); ResourceBaseInfo deviceInfo = deviceService.getOverview(); @@ -293,7 +292,7 @@ public class ServerController { @GetMapping(value = "/info") @ResponseBody - @Operation(summary = "获取系统信息") + @Operation(summary = "获取系统信息", security = @SecurityRequirement(name = JwtUtils.HEADER)) public Map> getInfo() { Map> result = new LinkedHashMap<>(); Map hardwareMap = new LinkedHashMap<>(); @@ -347,7 +346,7 @@ public class ServerController { @GetMapping(value = "/channel/datatype") @ResponseBody - @Operation(summary = "获取系统接入的数据类型") + @Operation(summary = "获取系统接入的数据类型", security = @SecurityRequirement(name = JwtUtils.HEADER)) public List> getDataType() { List> result = new LinkedList<>(); for (ChannelDataType item : ChannelDataType.values()) {