47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|