Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/eduardo-paes/DotnetG…
Browse files Browse the repository at this point in the history
…raphQl into development
  • Loading branch information
eduardo committed Aug 30, 2023
2 parents 199fbf5 + a3ab36e commit 0869294
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Application/UseCases/Notice/CreateNotice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public async Task<DetailedReadNoticeOutput> ExecuteAsync(CreateNoticeInput input
input.SendingDocsEndDate,
input.PartialReportDeadline,
input.FinalReportDeadline,
input.Description,
input.SuspensionYears
);

Expand Down
1 change: 1 addition & 0 deletions src/Application/UseCases/Notice/UpdateNotice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public async Task<DetailedReadNoticeOutput> 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
Expand Down
11 changes: 11 additions & 0 deletions src/Domain/Entities/Notice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ public int? SuspensionYears
/// </summary>
public string? DocUrl { get; set; }

/// <summary>
/// Descrição do edital
/// </summary>
private string? _description;
public string? Description {
get => _description;
set { _description = value; }
}

/// <summary>
/// Data de criação do edital
/// </summary>
Expand All @@ -208,6 +217,7 @@ public Notice(DateTime? registrationStartDate,
DateTime? sendingDocsEndDate,
DateTime? partialReportDeadline,
DateTime? finalReportDeadline,
string? description,
int? suspensionYears)
{
RegistrationStartDate = registrationStartDate;
Expand All @@ -221,6 +231,7 @@ public Notice(DateTime? registrationStartDate,
SuspensionYears = suspensionYears;
PartialReportDeadline = partialReportDeadline;
FinalReportDeadline = finalReportDeadline;
Description = description;
CreatedAt = DateTime.UtcNow;
}

Expand Down

0 comments on commit 0869294

Please sign in to comment.