add source

This commit is contained in:
2025-01-09 13:55:29 +08:00
parent da40fc3a0f
commit c3a9e11fa6
2 changed files with 7 additions and 1 deletions

View File

@@ -83,6 +83,11 @@ public class DeviceTaskAssignmentResponse
/// </summary>
public string DeployPlace { get; set; }
/// <summary>
/// 来源
/// </summary>
public string Source { get; set; }
public int HeartbeatInterval { get; set; }
public DateTime LastHeartbeatTime { get; set; }

View File

@@ -66,7 +66,8 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
LastHeartbeatTime = deviceRegistry.LastHeartbeatTime,
HeartbeatInterval = device.HeartbeatInterval,
DeployPlace = device.DeployPlace,
CreateBy = deviceTask.CreatedBy
CreateBy = deviceTask.CreatedBy,
Source = deviceTask.Source
})
.ToPageListAsync(request);