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