zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/Models/Devices/DeviceCreateRequestModel.cs

47 lines
1.1 KiB
C#
Raw Normal View History

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