diff --git a/src/Application/UseCases/Notice/CreateNotice.cs b/src/Application/UseCases/Notice/CreateNotice.cs index b2e40c3e..fc18a126 100644 --- a/src/Application/UseCases/Notice/CreateNotice.cs +++ b/src/Application/UseCases/Notice/CreateNotice.cs @@ -54,6 +54,7 @@ public async Task ExecuteAsync(CreateNoticeInput input input.SendingDocsEndDate, input.PartialReportDeadline, input.FinalReportDeadline, + input.Description, input.SuspensionYears ); diff --git a/src/Application/UseCases/Notice/UpdateNotice.cs b/src/Application/UseCases/Notice/UpdateNotice.cs index 2b75abcc..fa34b442 100644 --- a/src/Application/UseCases/Notice/UpdateNotice.cs +++ b/src/Application/UseCases/Notice/UpdateNotice.cs @@ -64,6 +64,7 @@ public async Task ExecuteAsync(Guid? id, UpdateNoticeI notice.SendingDocsEndDate = model.SendingDocsEndDate ?? notice.SendingDocsEndDate; notice.PartialReportDeadline = model.PartialReportDeadline ?? notice.PartialReportDeadline; notice.FinalReportDeadline = model.FinalReportDeadline ?? notice.FinalReportDeadline; + notice.Description = model.Description ?? notice.Description; notice.SuspensionYears = model.SuspensionYears ?? notice.SuspensionYears; // Converte as atividades para entidades antes de prosseguir diff --git a/src/Domain/Entities/Notice.cs b/src/Domain/Entities/Notice.cs index 9498961b..35f3c971 100644 --- a/src/Domain/Entities/Notice.cs +++ b/src/Domain/Entities/Notice.cs @@ -191,6 +191,15 @@ public int? SuspensionYears /// public string? DocUrl { get; set; } + /// + /// Descrição do edital + /// + private string? _description; + public string? Description { + get => _description; + set { _description = value; } + } + /// /// Data de criação do edital /// @@ -208,6 +217,7 @@ public Notice(DateTime? registrationStartDate, DateTime? sendingDocsEndDate, DateTime? partialReportDeadline, DateTime? finalReportDeadline, + string? description, int? suspensionYears) { RegistrationStartDate = registrationStartDate; @@ -221,6 +231,7 @@ public Notice(DateTime? registrationStartDate, SuspensionYears = suspensionYears; PartialReportDeadline = partialReportDeadline; FinalReportDeadline = finalReportDeadline; + Description = description; CreatedAt = DateTime.UtcNow; }