using System.Diagnostics.CodeAnalysis; using ZeroFramework.DeviceCenter.Application.Models.Products; using ZeroFramework.DeviceCenter.Domain.Aggregates.DeviceAggregate; namespace ZeroFramework.DeviceCenter.Application.Models.Devices { public class DeviceGetResponseModel { /// /// 设备编号 /// public long Id { get; set; } /// /// 设备名称 /// [AllowNull] public string Name { get; set; } /// /// 设备状态 /// [AllowNull] public DeviceStatus Status { get; set; } /// /// 所属产品 /// [AllowNull] public int ProductId { get; set; } /// /// 所属产品 /// [AllowNull] public ProductGetResponseModel Product { get; set; } /// /// 经纬度坐标 /// [AllowNull] public string? Coordinate { get; set; } /// /// 描述信息 /// public string? Remark { get; set; } /// /// 最后在线时间 /// public DateTimeOffset? LastOnlineTime { get; set; } /// /// 创建时间 /// public DateTimeOffset CreationTime { get; set; } } }