修正错行及Swagger参数缺少dataTypeClass定义问题

pull/115/head
lawrencehj 2021-06-23 15:58:43 +08:00
parent 456f90cd25
commit 4ad394f771
1 changed files with 3 additions and 4 deletions

View File

@ -132,15 +132,14 @@ public class DeviceQuery {
*/ */
@ApiOperation("同步设备通道") @ApiOperation("同步设备通道")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name="deviceId", value = "设备id", required = true ,dataTypeClass = String.class), @ApiImplicitParam(name="deviceId", value = "设备id", required = true, dataTypeClass = String.class),
}) })
@PostMapping("/devices/{deviceId}/sync") @PostMapping("/devices/{deviceId}/sync")
public DeferredResult<ResponseEntity<Device>> devicesSync(@PathVariable String deviceId){ public DeferredResult<ResponseEntity<Device>> devicesSync(@PathVariable String deviceId){
if (logger.isDebugEnabled()) { if (logger.isDebugEnabled()) {
}
logger.debug("设备通道信息同步API调用deviceId" + deviceId); logger.debug("设备通道信息同步API调用deviceId" + deviceId);
}
Device device = storager.queryVideoDevice(deviceId); Device device = storager.queryVideoDevice(deviceId);
cmder.catalogQuery(device, event -> { cmder.catalogQuery(device, event -> {
Response response = event.getResponse(); Response response = event.getResponse();
@ -264,7 +263,7 @@ public class DeviceQuery {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备id", required = true, dataTypeClass = String.class), @ApiImplicitParam(name = "deviceId", value = "设备id", required = true, dataTypeClass = String.class),
@ApiImplicitParam(name = "streamMode", value = "数据流传输模式, 取值:" + @ApiImplicitParam(name = "streamMode", value = "数据流传输模式, 取值:" +
"UDPudp传输TCP-ACTIVEtcp主动模式,暂不支持TCP-PASSIVEtcp被动模式"), "UDPudp传输TCP-ACTIVEtcp主动模式,暂不支持TCP-PASSIVEtcp被动模式", dataTypeClass = String.class),
}) })
@PostMapping("/transport/{deviceId}/{streamMode}") @PostMapping("/transport/{deviceId}/{streamMode}")
public ResponseEntity<PageInfo> updateTransport(@PathVariable String deviceId, @PathVariable String streamMode){ public ResponseEntity<PageInfo> updateTransport(@PathVariable String deviceId, @PathVariable String streamMode){