You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.6 KiB

namespace CellularManagement.Application.Features.DeviceRuntimes.Queries.GetDeviceRuntimes;
/// <summary>
/// 获取设备运行时状态列表响应
/// </summary>
public class GetDeviceRuntimesResponse
{
/// <summary>
/// 总记录数
/// </summary>
public int TotalCount { get; set; }
/// <summary>
/// 当前页码
/// </summary>
public int PageNumber { get; set; }
/// <summary>
/// 每页记录数
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// 总页数
/// </summary>
public int TotalPages { get; set; }
/// <summary>
/// 设备运行时状态列表
/// </summary>
public List<DeviceRuntimeDto> Items { get; set; } = new();
}
/// <summary>
/// 设备运行时状态数据传输对象
/// </summary>
public class DeviceRuntimeDto
{
/// <summary>
/// 运行时状态ID
/// </summary>
public string Id { get; set; } = null!;
/// <summary>
/// 设备编号
/// </summary>
public string DeviceCode { get; set; } = null!;
/// <summary>
/// 运行时状态
/// </summary>
public string RuntimeStatus { get; set; } = null!;
/// <summary>
/// 运行编码
/// </summary>
public string? RuntimeCode { get; set; }
/// <summary>
/// 网络栈配置编号
/// </summary>
public string? NetworkStackCode { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; }
/// <summary>
/// 设备信息
/// </summary>
public DeviceInfoDto? Device { get; set; }
}
/// <summary>
/// 设备信息数据传输对象
/// </summary>
public class DeviceInfoDto
{
/// <summary>
/// 设备ID
/// </summary>
public string Id { get; set; } = null!;
/// <summary>
/// 设备名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 设备序列号
/// </summary>
public string SerialNumber { get; set; } = null!;
/// <summary>
/// 设备编码
/// </summary>
public string DeviceCode { get; set; } = null!;
/// <summary>
/// 设备描述
/// </summary>
public string Description { get; set; } = null!;
/// <summary>
/// IP地址
/// </summary>
public string IpAddress { get; set; } = null!;
/// <summary>
/// Agent端口
/// </summary>
public int AgentPort { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public bool IsEnabled { get; set; }
}