forked from Thirdparty/wvp
1
0
Fork 0

规范API格式

master
songww 2020-05-14 14:41:49 +08:00
parent 805fa42a2c
commit fede660d21
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ public class RecordController {
@Autowired @Autowired
private DeferredResultHolder resultHolder; private DeferredResultHolder resultHolder;
@GetMapping("/record/{deviceId}") @GetMapping("/record/{deviceId}/{channelId}")
public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId, String channelId, String startTime, String endTime){ public DeferredResult<ResponseEntity<RecordInfo>> recordinfo(@PathVariable String deviceId,@PathVariable String channelId, String startTime, String endTime){
if (logger.isDebugEnabled()) { 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); Device device = storager.queryVideoDevice(deviceId);