using System.Diagnostics.CodeAnalysis; using ZeroFramework.DeviceCenter.Domain.Entities; namespace ZeroFramework.DeviceCenter.Domain.Aggregates.DeviceAggregate { public class Device : BaseAggregateRoot, IMultiTenant { /// /// 设备名称 /// [AllowNull] public string Name { get; set; } /// /// 设备状态 /// [AllowNull] public DeviceStatus Status { get; set; } /// /// 产品编号 /// public int ProductId { get; set; } /// /// 经纬度坐标 /// [AllowNull] public GeoCoordinate? Coordinate { get; set; } /// /// 描述信息 /// public string? Remark { get; set; } /// /// 最后在线时间 /// public DateTimeOffset? LastOnlineTime { get; set; } /// /// 创建时间 /// public DateTimeOffset CreationTime { get; set; } /// /// 设备组别 /// public List? DeviceGroups { get; set; } /// /// 租户编号 /// public Guid? TenantId { get; set; } } }