refactor(envelope): consolidate draft flow into upsert command
- extend CreateEnvelopeCommand to support draft updates and send intent - merge draft save logic into CreateEnvelopeCommandHandler and remove duplicate handler - add DocReceiverElement writer abstraction and infrastructure registration for SQL-based field upserts
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using EnvelopeGenerator.Domain.Entities;
|
||||
|
||||
namespace EnvelopeGenerator.Application.Common.Interfaces;
|
||||
|
||||
public interface IDocReceiverElementWriter
|
||||
{
|
||||
Task DeleteByDocumentAndReceiverAsync(int documentId, int receiverId, CancellationToken cancellationToken = default);
|
||||
|
||||
Task InsertAsync(DocReceiverElement element, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user