File was renamed from src/main/java/com/genersoft/iot/vmp/vmanager/device/DeviceConfig.java |
| | |
| | | * @date 2021年2月2日 |
| | | */ |
| | | |
| | | package com.genersoft.iot.vmp.vmanager.device; |
| | | package com.genersoft.iot.vmp.vmanager.gb28181.device; |
| | | |
| | | import javax.sip.message.Response; |
| | | |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpRequest; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.context.request.async.DeferredResult; |
| | |
| | | @ApiOperation("看守位控制命令") |
| | | @GetMapping("/basicParam/{deviceId}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "deviceId", value ="设备ID" ), |
| | | @ApiImplicitParam(name = "channelId", value ="通道ID" ), |
| | | @ApiImplicitParam(name = "name", value ="名称" ), |
| | | @ApiImplicitParam(name = "expiration", value ="到期时间" ), |
| | | @ApiImplicitParam(name = "heartBeatInterval", value ="心跳间隔" ), |
| | | @ApiImplicitParam(name = "heartBeatCount", value ="心跳计数" ), |
| | | @ApiImplicitParam(name = "deviceId", value ="设备ID" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "channelId", value ="通道ID",dataTypeClass = String.class ), |
| | | @ApiImplicitParam(name = "name", value ="名称" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "expiration", value ="到期时间" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "heartBeatInterval", value ="心跳间隔" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "heartBeatCount", value ="心跳计数" ,dataTypeClass = String.class), |
| | | }) |
| | | public DeferredResult<ResponseEntity<String>> homePositionApi(@PathVariable String deviceId, |
| | | @RequestParam(required = false) String channelId, |
| | |
| | | */ |
| | | @ApiOperation("设备配置查询请求") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "deviceId", value ="设备ID" ), |
| | | @ApiImplicitParam(name = "channelId", value ="通道ID" ), |
| | | @ApiImplicitParam(name = "configType", value ="配置类型" ), |
| | | @ApiImplicitParam(name = "deviceId", value ="设备ID" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "channelId", value ="通道ID" ,dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "configType", value ="配置类型" ,dataTypeClass = String.class), |
| | | }) |
| | | @GetMapping("/query/{deviceId}/{configType}") |
| | | public DeferredResult<ResponseEntity<String>> configDownloadApi(@PathVariable String deviceId, |