feature: Approval and Promotion to VigilCareClinical

This commit is contained in:
voltsrage
2026-06-26 15:05:02 +08:00
parent 470df683dd
commit 706318e5d2
40 changed files with 5639 additions and 3 deletions
@@ -0,0 +1,14 @@
public interface IIdempotencyService
{
/// <summary>
/// Returns the cached response if the key was already used, or null if this is a new key.
/// </summary>
Task<IdempotencyRecord?> GetExistingAsync(string idempotencyKey, string operationName);
/// <summary>
/// Stores the result of an operation for future deduplication.
/// Must be called within the same transaction as the operation.
/// </summary>
Task SaveAsync(string idempotencyKey, string operationName, Guid resourceId,
int httpStatusCode, object responseBody, TimeSpan? ttl = null);
}