Commit fede660d2145a88d0a031ee3526c30f6df9c1ce5

Authored by songww
1 parent 805fa42a

规范API格式

src/main/java/com/genersoft/iot/vmp/vmanager/record/RecordController.java
@@ -31,11 +31,11 @@ public class RecordController { @@ -31,11 +31,11 @@ public class RecordController {
31 @Autowired 31 @Autowired
32 private DeferredResultHolder resultHolder; 32 private DeferredResultHolder resultHolder;
33 33
34 - @GetMapping("/record/{deviceId}")  
35 - public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId, String channelId, String startTime, String endTime){ 34 + @GetMapping("/record/{deviceId}/{channelId}")
  35 + public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId,@PathVariable String channelId, String startTime, String endTime){
36 36
37 if (logger.isDebugEnabled()) { 37 if (logger.isDebugEnabled()) {
38 - logger.debug(String.format("录像信息 API调用,deviceId:%s ,startTime:%s, startTime:%s",deviceId, startTime, endTime)); 38 + logger.debug(String.format("录像信息查询 API调用,deviceId:%s ,startTime:%s, startTime:%s",deviceId, startTime, endTime));
39 } 39 }
40 40
41 Device device = storager.queryVideoDevice(deviceId); 41 Device device = storager.queryVideoDevice(deviceId);