[接口文档] 补充缺少的登录信息描述
parent
bc249b6786
commit
171702e4ce
|
@ -5,7 +5,6 @@ import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.genersoft.iot.vmp.common.SystemAllInfo;
|
import com.genersoft.iot.vmp.common.SystemAllInfo;
|
||||||
import com.genersoft.iot.vmp.common.VersionPo;
|
import com.genersoft.iot.vmp.common.VersionPo;
|
||||||
import com.genersoft.iot.vmp.common.enums.ChannelDataType;
|
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.SipConfig;
|
||||||
import com.genersoft.iot.vmp.conf.UserSetting;
|
import com.genersoft.iot.vmp.conf.UserSetting;
|
||||||
import com.genersoft.iot.vmp.conf.VersionInfo;
|
import com.genersoft.iot.vmp.conf.VersionInfo;
|
||||||
|
@ -224,7 +223,7 @@ public class ServerController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/config")
|
@GetMapping(value = "/config")
|
||||||
@Operation(summary = "获取配置信息")
|
@Operation(summary = "获取配置信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
@Parameter(name = "type", description = "配置类型(sip, base)", required = true)
|
@Parameter(name = "type", description = "配置类型(sip, base)", required = true)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public JSONObject getVersion(String type) {
|
public JSONObject getVersion(String type) {
|
||||||
|
@ -251,7 +250,7 @@ public class ServerController {
|
||||||
|
|
||||||
@GetMapping(value = "/system/info")
|
@GetMapping(value = "/system/info")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Operation(summary = "获取系统信息")
|
@Operation(summary = "获取系统信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
public SystemAllInfo getSystemInfo() {
|
public SystemAllInfo getSystemInfo() {
|
||||||
SystemAllInfo systemAllInfo = redisCatchStorage.getSystemInfo();
|
SystemAllInfo systemAllInfo = redisCatchStorage.getSystemInfo();
|
||||||
|
|
||||||
|
@ -260,7 +259,7 @@ public class ServerController {
|
||||||
|
|
||||||
@GetMapping(value = "/media_server/load")
|
@GetMapping(value = "/media_server/load")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Operation(summary = "获取负载信息")
|
@Operation(summary = "获取负载信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
public List<MediaServerLoad> getMediaLoad() {
|
public List<MediaServerLoad> getMediaLoad() {
|
||||||
List<MediaServerLoad> result = new ArrayList<>();
|
List<MediaServerLoad> result = new ArrayList<>();
|
||||||
List<MediaServer> allOnline = mediaServerService.getAllOnline();
|
List<MediaServer> allOnline = mediaServerService.getAllOnline();
|
||||||
|
@ -276,7 +275,7 @@ public class ServerController {
|
||||||
|
|
||||||
@GetMapping(value = "/resource/info")
|
@GetMapping(value = "/resource/info")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Operation(summary = "获取负载信息")
|
@Operation(summary = "获取负载信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
public ResourceInfo getResourceInfo() {
|
public ResourceInfo getResourceInfo() {
|
||||||
ResourceInfo result = new ResourceInfo();
|
ResourceInfo result = new ResourceInfo();
|
||||||
ResourceBaseInfo deviceInfo = deviceService.getOverview();
|
ResourceBaseInfo deviceInfo = deviceService.getOverview();
|
||||||
|
@ -293,7 +292,7 @@ public class ServerController {
|
||||||
|
|
||||||
@GetMapping(value = "/info")
|
@GetMapping(value = "/info")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Operation(summary = "获取系统信息")
|
@Operation(summary = "获取系统信息", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
public Map<String, Map<String, String>> getInfo() {
|
public Map<String, Map<String, String>> getInfo() {
|
||||||
Map<String, Map<String, String>> result = new LinkedHashMap<>();
|
Map<String, Map<String, String>> result = new LinkedHashMap<>();
|
||||||
Map<String, String> hardwareMap = new LinkedHashMap<>();
|
Map<String, String> hardwareMap = new LinkedHashMap<>();
|
||||||
|
@ -347,7 +346,7 @@ public class ServerController {
|
||||||
|
|
||||||
@GetMapping(value = "/channel/datatype")
|
@GetMapping(value = "/channel/datatype")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Operation(summary = "获取系统接入的数据类型")
|
@Operation(summary = "获取系统接入的数据类型", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
public List<Map<String, Object>> getDataType() {
|
public List<Map<String, Object>> getDataType() {
|
||||||
List<Map<String, Object>> result = new LinkedList<>();
|
List<Map<String, Object>> result = new LinkedList<>();
|
||||||
for (ChannelDataType item : ChannelDataType.values()) {
|
for (ChannelDataType item : ChannelDataType.values()) {
|
||||||
|
|
Loading…
Reference in New Issue