This commit is contained in:
郭睿AMD7950X 2024-12-03 16:29:55 +08:00
parent 4e115c914c
commit 24eb261a89

View File

@ -1037,6 +1037,39 @@ namespace YunDa.ISAS.Application.GeneralInformation
} }
return rst; return rst;
} }
/// <summary>
/// 获取装置初始监测状态
/// </summary>
/// <param name="equipmentInfoId"></param>
/// <returns></returns>
[AbpAllowAnonymous]
[HttpGet]
[DisableAuditing]
public async Task<RequestResult<DeviceCPUMonitoring>> GetDeviceCPUMonitoring(Guid equipmentInfoId)
{
RequestResult<DeviceCPUMonitoring> rst = new();
try
{
rst.ResultData = new DeviceCPUMonitoring
{
EquipmentInfoId = equipmentInfoId,
CPU5V1 = 5f,
CPU5V2 = 5f,
CPU5V3 = 5f,
CPUTemperature = 0,
SurfaceTemperature = 0,
Time = DateTime.Now,
};
rst.Flag = true;
}
catch (Exception ex)
{
rst.Message = ex.Message;
Log4Helper.Error(this.GetType(), "线路管理服务", ex);
}
return rst;
}
#if DEBUG #if DEBUG
/// <summary> /// <summary>
/// 填充出厂编号 /// 填充出厂编号