Skip to content

Commit

Permalink
feat: move NoteDto to BuildingBlocks & update using statements
Browse files Browse the repository at this point in the history
  • Loading branch information
HunorTotBagi committed Feb 11, 2025
1 parent 5407453 commit 4019903
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
<Folder Include="Notes\Note\Events\" />
<Folder Include="Notes\Note\ValueObjects\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Notes.Application.Entities.Notes.Dtos;
namespace BuildingBlocks.Domain.Notes.Note.Dtos;

public record NoteDto(
string Id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BuildingBlocks.Domain.ValueObjects.Ids;
using BuildingBlocks.Domain.Notes.Note.Dtos;
using BuildingBlocks.Domain.ValueObjects.Ids;
using Notes.Application.Entities.Notes.Commands.CreateNote;

namespace Notes.Api.Endpoints.Notes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using BuildingBlocks.Domain.Notes.Note.Dtos;
using Notes.Application.Entities.Notes.Queries.GetNoteById;

namespace Notes.Api.Endpoints.Notes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BuildingBlocks.Application.Pagination;
using BuildingBlocks.Domain.Notes.Note.Dtos;
using Notes.Application.Entities.Notes.Queries.ListNotes;

namespace Notes.Api.Endpoints.Notes;
Expand Down
3 changes: 1 addition & 2 deletions Backend/src/Modules/Notes/Notes.Api/GlobalUsing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
global using MediatR;
global using Microsoft.AspNetCore.Builder;
global using Microsoft.AspNetCore.Http;
global using Microsoft.AspNetCore.Routing;
global using Notes.Application.Entities.Notes.Dtos;
global using Microsoft.AspNetCore.Routing;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Notes.Application.Entities.Notes.Dtos;
using BuildingBlocks.Domain.Notes.Note.Dtos;

namespace Notes.Application.Entities.Notes.Commands.CreateNote;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Notes.Application.Entities.Notes.Dtos;
using BuildingBlocks.Domain.Notes.Note.Dtos;

namespace Notes.Application.Entities.Notes.Extensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ReSharper disable ClassNeverInstantiated.Global

using Notes.Application.Entities.Notes.Dtos;
using BuildingBlocks.Domain.Notes.Note.Dtos;

namespace Notes.Application.Entities.Notes.Queries.GetNoteById;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BuildingBlocks.Application.Pagination;
using Notes.Application.Entities.Notes.Dtos;
using BuildingBlocks.Domain.Notes.Note.Dtos;
using Notes.Application.Entities.Notes.Extensions;

namespace Notes.Application.Entities.Notes.Queries.ListNotes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BuildingBlocks.Application.Pagination;
using Notes.Application.Entities.Notes.Dtos;
using BuildingBlocks.Domain.Notes.Note.Dtos;

namespace Notes.Application.Entities.Notes.Queries.ListNotes;

Expand Down

0 comments on commit 4019903

Please sign in to comment.