automapper自动映射(传入前端数据ID必须转string)

This commit is contained in:
“hsc”
2026-08-28 13:15:44 +08:00
parent 9e78aa7769
commit 01f51fa3b4
13 changed files with 493 additions and 10 deletions
@@ -0,0 +1,35 @@
namespace Model.Dto.Inspection
{
/// <summary>
/// 温度箱看板数据 DTOId 由 long 改为 string,避免前端精度丢失)
/// </summary>
public class TemperatureBoxDataDto
{
/// <summary>主键 Idlong → string</summary>
public string Id { get; set; }
/// <summary>删除状态(0、未删除;1、已删除)</summary>
public byte IsDel { get; set; }
/// <summary>采集时间</summary>
public DateTime? CreateTime { get; set; }
/// <summary>设备标识</summary>
public string DeviceCode { get; set; }
/// <summary>设备类型</summary>
public string DeviceType { get; set; }
/// <summary>设备温度(℃)</summary>
public double? DeviceTemperature { get; set; }
/// <summary>设备湿度(%</summary>
public double? DeviceHumidity { get; set; }
/// <summary>设备状态</summary>
public string Status { get; set; }
/// <summary>设备告警信息</summary>
public string AlarmInfo { get; set; }
}
}