修复开始点播功能接口调用返回参数与定义的不符 #635
This commit is contained in:
@@ -82,7 +82,7 @@ public class PlayController {
|
||||
@Parameter(name = "deviceId", description = "设备国标编号", required = true)
|
||||
@Parameter(name = "channelId", description = "通道国标编号", required = true)
|
||||
@GetMapping("/start/{deviceId}/{channelId}")
|
||||
public DeferredResult<WVPResult<String>> play(@PathVariable String deviceId,
|
||||
public DeferredResult<WVPResult<StreamInfo>> play(@PathVariable String deviceId,
|
||||
@PathVariable String channelId) {
|
||||
|
||||
// 获取可用的zlm
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.genersoft.iot.vmp.vmanager.gb28181.play.bean;
|
||||
|
||||
import com.genersoft.iot.vmp.common.StreamInfo;
|
||||
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
||||
import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@@ -7,16 +8,16 @@ import org.springframework.web.context.request.async.DeferredResult;
|
||||
|
||||
public class PlayResult {
|
||||
|
||||
private DeferredResult<WVPResult<String>> result;
|
||||
private DeferredResult<WVPResult<StreamInfo>> result;
|
||||
private String uuid;
|
||||
|
||||
private Device device;
|
||||
|
||||
public DeferredResult<WVPResult<String>> getResult() {
|
||||
public DeferredResult<WVPResult<StreamInfo>> getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(DeferredResult<WVPResult<String>> result) {
|
||||
public void setResult(DeferredResult<WVPResult<StreamInfo>> result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user