添加设备类、设备日志类、设备服务类、设备控制器

This commit is contained in:
2026-08-28 17:28:16 +08:00
parent 6c20630a40
commit cfa8e78d33
11 changed files with 667 additions and 23 deletions
+32
View File
@@ -0,0 +1,32 @@
namespace Model.Dto.Config
{
/// <summary>
/// 设备日志 DTOId 由 long 改为 string,避免前端精度丢失)
/// </summary>
public class DeviceLogDto
{
/// <summary>主键 Idlong → string</summary>
public string Id { get; set; }
/// <summary>设备Id</summary>
public string DeviceId { get; set; }
/// <summary>设备编号</summary>
public string DeviceCode { get; set; }
/// <summary>日志级别(Info/Warn/Error</summary>
public string Level { get; set; }
/// <summary>日志类型(连接/通讯/采集/指令/系统)</summary>
public string LogType { get; set; }
/// <summary>日志内容</summary>
public string Message { get; set; }
/// <summary>记录时间</summary>
public DateTime LogTime { get; set; }
/// <summary>创建时间</summary>
public DateTime? CreateTime { get; set; }
}
}