细化接口内容

This commit is contained in:
2025-12-31 20:43:54 +08:00
parent 8cd36f44ac
commit 0534ddca75
5 changed files with 26 additions and 7 deletions

View File

@@ -32,11 +32,23 @@ public class CamerasController : ControllerBase
var devices = _manager.GetAllDevices().Select(d => new
{
d.Id,
d.Config.IpAddress,
d.Config.Name,
d.Config.RenderHandle,
d.Config.StreamType,
d.Config.IpAddress,
Brand = d.Config.Brand.ToString(),
Status = d.Status.ToString(),
d.RealFps,
d.TotalFrames
d.TotalFrames,
d.IsPhysicalOnline,
d.IsOnline,
d.IsRunning,
d.Width,
d.Height,
d.PreprocessSettings.AllowEnlarge,
d.PreprocessSettings.AllowShrink,
ScalingWidth = d.PreprocessSettings.Width,
ScalingHeight = d.PreprocessSettings.Height,
});
return Ok(devices);
}