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()) {