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