namespace MoviconWebApi.API.DeviceAlarmApi { /// /// 设备报警查询请求 /// public class DeviceAlarmRequest { /// /// 设备编号 /// public string? DeviceCode { get; set; } /// /// 开始时间 /// public string? StartTime { get; set; } /// /// 结束时间 /// public string? EndTime { get; set; } /// /// 设备状态(0表示返回所有状态记录) /// public int DeviceState { get; set; } = 0; /// /// 当前页码(从1开始) /// public int PageNo { get; set; } = 1; /// /// 分页大小 /// public int PageSize { get; set; } = 100; } /// /// 设备报警分页查询请求 /// public class DeviceAlarmPagedRequest : DeviceAlarmRequest { /// /// 页码 /// public int PageNumber { get; set; } = 1; /// /// 每页大小 /// public int PageSize { get; set; } = 10; } /// /// 设备报警响应 /// public class DeviceAlarmResponse { /// /// 设备编号 /// public string? DeviceCode { get; set; } /// /// 设备名称 /// public string? DeviceName { get; set; } /// /// 设备状态 /// public int? DeviceState { get; set; } /// /// 报警信息 /// public string? AlarmMessage { get; set; } /// /// 开始时间 /// public string? StartTime { get; set; } /// /// 结束时间 /// public string? EndTime { get; set; } } /// /// 设备报警分页响应 /// public class DeviceAlarmPagedResponse { /// /// 数据列表 /// public List Items { get; set; } = new List(); /// /// 总数 /// public long Total { get; set; } } }