refactor(AnnotationDto): split AnnotationDto into AnnotationCreateDto and AnnotationDto
- Introduced AnnotationCreateDto for creation-specific properties - AnnotationDto now inherits from AnnotationCreateDto and includes Id, AddedWhen, ChangedWhen, and ChangedWho - Added Type property to AnnotationCreateDto - remove CreateAnnotationCommand
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using EnvelopeGenerator.Application.Annotations.Commands;
|
||||
using EnvelopeGenerator.Application.Common.Extensions;
|
||||
using EnvelopeGenerator.Application.Common.Extensions;
|
||||
using EnvelopeGenerator.Application.Common.Notifications.RemoveSignature;
|
||||
using MediatR;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -28,11 +27,4 @@ public class TestAnnotationController : ControllerBase
|
||||
await _mediator.Publish(new RemoveSignatureNotification(uuid));
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost("{envelopeKey}")]
|
||||
public async Task<IActionResult> Create([FromRoute] string envelopeKey, CancellationToken cancel)
|
||||
{
|
||||
var annot = await _mediator.CreateAnnotation(envelopeKey, cancel);
|
||||
return Ok(annot);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user