songww
2020-05-14 fede660d2145a88d0a031ee3526c30f6df9c1ce5
规范API格式
1个文件已修改
6 ■■■■ 已修改文件
src/main/java/com/genersoft/iot/vmp/vmanager/record/RecordController.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/genersoft/iot/vmp/vmanager/record/RecordController.java
@@ -31,11 +31,11 @@
    @Autowired
    private DeferredResultHolder resultHolder;
    
    @GetMapping("/record/{deviceId}")
    public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId, String channelId, String startTime,  String endTime){
    @GetMapping("/record/{deviceId}/{channelId}")
    public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId,@PathVariable String channelId, String startTime,  String endTime){
        
        if (logger.isDebugEnabled()) {
            logger.debug(String.format("录像信息 API调用,deviceId:%s ,startTime:%s, startTime:%s",deviceId, startTime, endTime));
            logger.debug(String.format("录像信息查询 API调用,deviceId:%s ,startTime:%s, startTime:%s",deviceId, startTime, endTime));
        }
        
        Device device = storager.queryVideoDevice(deviceId);