chore: necessary updates given the changes in the alert controller

This commit is contained in:
voltsrage
2026-06-25 00:40:47 +08:00
parent 666d683d67
commit 7bb9124230
32 changed files with 353 additions and 40 deletions
@@ -85,7 +85,7 @@ public class AlertService : IAlertService
return AlertResponseMapper.ToResponse(alert);
}
public async Task<ClinicalAlert> AcknowledgeAsync(Guid id, AcknowledgeAlertRequest req)
public async Task<AlertResponse> AcknowledgeAsync(Guid id, AcknowledgeAlertRequest req)
{
if (!_currentUser.IsAuthenticated)
throw new ValidationException("Authentication required.", "AUTH_REQUIRED");
@@ -164,7 +164,7 @@ public class AlertService : IAlertService
reason: acknowledgmentNote);
}
return alert;
return AlertResponseMapper.ToResponse(alert);
}
public async Task<AlertFeedback> SubmitFeedbackAsync(
@@ -234,7 +234,7 @@ public class AlertService : IAlertService
return overrideMinutes ?? defaultWindowMinutes;
}
public async Task<ClinicalAlert> ResolveAsync(Guid id)
public async Task<AlertResponse> ResolveAsync(Guid id)
{
var alert = await _db.ClinicalAlerts.FindAsync(id);
if (alert is null)
@@ -256,7 +256,7 @@ public class AlertService : IAlertService
previousValue: new { status = AlertStatus.Acknowledged.ToDbString() },
newValue: new { status = alert.Status.ToDbString() });
return alert;
return AlertResponseMapper.ToResponse(alert);
}
public async Task ApplySyncedAcknowledgmentAsync(