|
|
|
@ -178,7 +178,7 @@ namespace Video.API.Controllers.DaHua |
|
|
|
/// <param name="id"></param> |
|
|
|
/// <param name="id"></param> |
|
|
|
/// <param name="channelId">视频id</param> |
|
|
|
/// <param name="channelId">视频id</param> |
|
|
|
/// <returns></returns> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpGet] |
|
|
|
[HttpGet("dh/snapshot")] |
|
|
|
public async Task<DaHApiResult<SnapshotResDto>> InvokeSnapshot(string deviceCode, long id, int channelId) |
|
|
|
public async Task<DaHApiResult<SnapshotResDto>> InvokeSnapshot(string deviceCode, long id, int channelId) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return await _dahGeneralCtlService.InvokeSnapshot(deviceCode, id, channelId); |
|
|
|
return await _dahGeneralCtlService.InvokeSnapshot(deviceCode, id, channelId); |
|
|
|
@ -189,7 +189,7 @@ namespace Video.API.Controllers.DaHua |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
/// <param name="dto"></param> |
|
|
|
/// <param name="dto"></param> |
|
|
|
/// <returns></returns> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[HttpPost("dh/camera")] |
|
|
|
public async Task<DaHApiResult<CameraControlResDto>> OperateCamera(CameraControlReqDto dto) |
|
|
|
public async Task<DaHApiResult<CameraControlResDto>> OperateCamera(CameraControlReqDto dto) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return await _dahGeneralCtlService.OperateCameraAsync(dto); |
|
|
|
return await _dahGeneralCtlService.OperateCameraAsync(dto); |
|
|
|
@ -200,7 +200,7 @@ namespace Video.API.Controllers.DaHua |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
/// <param name="dto"></param> |
|
|
|
/// <param name="dto"></param> |
|
|
|
/// <returns></returns> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[HttpPost("dh/direction")] |
|
|
|
public async Task<DaHApiResult<CameraControlResDto>> OperateDirect(CameraDirectionControlReqDto dto) |
|
|
|
public async Task<DaHApiResult<CameraControlResDto>> OperateDirect(CameraDirectionControlReqDto dto) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return await _dahGeneralCtlService.OperateDirectAsync(dto); |
|
|
|
return await _dahGeneralCtlService.OperateDirectAsync(dto); |
|
|
|
|